Events.Event.SetAvailability
----------------------------

Sets availability.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Events](component_Events.md) | [6.2](newinversion62.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "Events.Event.SetAvailability"; EKEvent; availability ) 

**MBS**( **"Events.Event.SetAvailability";** /\* Sets availability. \*/  
**$EKEvent**; /\* The reference to the event.e.g. $event \*/   
**$availability**) /\* The availability setting.  
Pass Busy, Free, Tentative or Unavailable.e.g. "Busy" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| EKEvent | The reference to the event. | $event |
| availability | The availability setting.   Pass Busy, Free, Tentative or Unavailable. | "Busy" |

### Result

Returns OK or error.

### Description

Sets availability.  
### Examples

Set busy:

 Set Variable \[$r ; Value:MBS ("Events.Event.SetAvailability"; $c ; "busy")\]  
### See also

- [Events.Event.GetAvailability](EventsEventGetAvailability.md)
- [Events.NewEvent](EventsNewEvent.md)
- [Events.SaveEvent](EventsSaveEvent.md)

### Example Databases

- [Mac and iOS/Events/Events Sync](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/Events/Events%20Sync.shtml#5ScriptAnchor_)

### Blog Entries

- [FileMaker and Calendar (iCal)](https://www.mbsplugins.de/archive/2016-04-23/FileMaker_and_Calendar_(iCal)/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 10th March 2016 , last changed 4th February 2019

  
[Events.Event.SetAllDay](EventsEventSetAllDay.md) - [Events.Event.SetEndDate](EventsEventSetEndDate.md)

[HTML Version](EventsEventSetAvailability.shtml)