Calendar.Item.SetCompleted
--------------------------

Sets the completed flag for a reminder.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Calendar](component_Calendar.md) | [3.4](newinversion34.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

### Deprecated

This function was [deprecated](deprecated.md).

MBS( "Calendar.Item.SetCompleted"; reminderRef; Value ) 

**MBS**( **"Calendar.Item.SetCompleted";** /\* Sets the completed flag for a reminder. \*/  
**$reminderRef**; /\* The reference to the reminder. \*/   
**$Value**) /\* The new setting. Pass 1 to mark as completed and 0 to mark as uncompleted.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| reminderRef | The reference to the reminder. | $reminderRef |
| Value | The new setting. Pass 1 to mark as completed and 0 to mark as uncompleted. | 1 |

### Result

Returns OK or error.

### Description

Sets the completed flag for a reminder.  
Setting the flag to 1 also sets completion date to current timestamp.  
Setting this flag to 0 will set the date to be undefined.  
### See also

- [Calendar.Item.GetCompleted](CalendarItemGetCompleted.md)
- [Calendar.Item.SetCalendar](CalendarItemSetCalendar.md)
- [Calendar.Item.SetCompletionDate](CalendarItemSetCompletionDate.md)
- [Calendar.Item.SetDueDate](CalendarItemSetDueDate.md)
- [Calendar.Item.SetEndDate](CalendarItemSetEndDate.md)
- [Calendar.Item.SetNotes](CalendarItemSetNotes.md)
- [Calendar.NewReminder](CalendarNewReminder.md)
- [Calendar.SaveReminder](CalendarSaveReminder.md)

### Example Databases

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

### Blog Entries

- [Todo/Reminder Synchronization for FileMaker on Mac using MBS Plugin](https://www.mbsplugins.de/archive/2016-09-22/TodoReminder_Synchronization_f/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[Calendar.Item.SetCalendar](CalendarItemSetCalendar.md) - [Calendar.Item.SetCompletionDate](CalendarItemSetCompletionDate.md)

[HTML Version](CalendarItemSetCompleted.shtml)