Events.NewReminder
------------------

Creates a new reminder.

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

MBS( "Events.NewReminder" ) ### Parameters

none

### Result

Returns reminder ID or error.

### Description

Creates a new reminder.  
### Examples

Create Reminder:

 Set Variable \[$reminder ; Value:MBS ( "Events.NewReminder" )\]  
Set Variable \[$calendar ; Value:Events Create Reminder::Calendar \]  
If \[IsEmpty(Events Create Reminder::Calendar )\]  
 Set Variable \[$calendar ; Value:MBS ( "[Events.defaultCalendarForNewReminders](EventsdefaultCalendarForNewReminders.md)" )\]  
End If  
Set Variable \[$r ; Value:MBS ( "[Events.Item.SetCalendar](EventsItemSetCalendar.md)"; $reminder ; $calendar )\]  
Set Variable \[$r ; Value:MBS ( "[Events.Item.SetLocation](EventsItemSetLocation.md)"; $reminder ; Events Create Reminder::Location )\]  
Set Variable \[$r ; Value:MBS ( "[Events.Item.SetTitle](EventsItemSetTitle.md)"; $reminder ; Events Create Reminder::Title )\]  
Set Variable \[$r ; Value:MBS ( "[Events.Item.SetURL](EventsItemSetURL.md)"; $reminder ; Events Create Reminder::URL )\]  
Set Variable \[$r ; Value:MBS ( "[Events.Item.SetNotes](EventsItemSetNotes.md)"; $reminder ; Events Create Reminder::Notes )\]  
If \[IsEmpty(Events Create Reminder::TimeZone )\]  
 #we don't set it  
Else  
 Set Variable \[$r ; Value:MBS ( "[Events.Item.SetTimeZone](EventsItemSetTimeZone.md)"; $reminder ; Events Create Reminder::TimeZone )\]  
End If  
Set Variable \[$r ; Value:MBS ( "[Events.Item.SetNotes](EventsItemSetNotes.md)"; $reminder ; Events Create Reminder::Notes )\]  
Set Variable \[$r ; Value:MBS ( "[Events.Reminder.SetPriority](EventsReminderSetPriority.md)"; $reminder ; Events Create Reminder::Priority )\]  
If \[not IsEmpty(Events Create Reminder::StartDate )\]  
 Set Variable \[$r ; Value:MBS ( "[Events.Reminder.SetStartDate](EventsReminderSetStartDate.md)"; $reminder ; Events Create Reminder::StartDate )\]  
End If  
If \[not IsEmpty(Events Create Reminder::DueDate )\]  
 Set Variable \[$r ; Value:MBS ( "[Events.Reminder.SetDueDate](EventsReminderSetDueDate.md)"; $reminder ; Events Create Reminder::DueDate )\]  
End If  
If \[not IsEmpty(Events Create Reminder::AlarmSound ) or not IsEmpty(Events Create Reminder::AlarmLocationTitle ) or not IsEmpty(Events Create Reminder::AlarmLocationGeoLat )\]  
 Set Variable \[$alarm ; Value:MBS ( "[Events.NewAlarm](EventsNewAlarm.md)" )\]  
 If \[not IsEmpty(Events Create Reminder::AlarmSound )\]  
 Set Variable \[$r ; Value:MBS ( "[Events.Alarm.SetSound](EventsAlarmSetSound.md)"; $alarm ; Events Create Reminder::AlarmSound )\]  
 End If  
 If \[not IsEmpty(Events Create Reminder::AlarmLocationTitle )\]  
 Set Variable \[$l ; Value:MBS ( "[Events.StructuredLocation.NewLocationWithTitle](EventsStructuredLocationNewLocationWithTitle.md)"; Events Create Reminder::AlarmLocationTitle )\]  
 Set Variable \[$r ; Value:MBS ( "[Events.StructuredLocation.SetRadius](EventsStructuredLocationSetRadius.md)"; $l ; Events Create Reminder::AlarmLocationRadius )\]  
 Set Variable \[$r ; Value:MBS ( "[Events.StructuredLocation.SetGeoLocation](EventsStructuredLocationSetGeoLocation.md)"; $l ; Events Create Reminder::AlarmLocationGeoLat ; Events Create Reminder::AlarmLocationGeoLong )\]  
 Set Variable \[$r ; Value:MBS ( "[Events.Alarm.SetStructuredLocation](EventsAlarmSetStructuredLocation.md)"; $alarm ; $l )\]  
 Set Variable \[$r ; Value:MBS ( "[Events.Alarm.SetProximity](EventsAlarmSetProximity.md)"; $alarm ; Events Create Reminder::AlarmProximity )\]  
 End If  
 Set Variable \[$r ; Value:MBS ( "[Events.Item.AddAlarm](EventsItemAddAlarm.md)"; $reminder ; $alarm )\]  
End If  
Set Variable \[$r ; Value:MBS ( "[Events.SaveReminder](EventsSaveReminder.md)"; $reminder ;1 )\]  
Show Custom Dialog \["Saved Reminder"; $r \]  
### See also

- [Events.Item.SetTimeZone](EventsItemSetTimeZone.md)
- [Events.Item.SetURL](EventsItemSetURL.md)
- [Events.NewAlarm](EventsNewAlarm.md)
- [Events.NewCalendar](EventsNewCalendar.md)
- [Events.Reminder.SetDueDate](EventsReminderSetDueDate.md)
- [Events.Reminder.SetPriority](EventsReminderSetPriority.md)
- [Events.Reminder.SetStartDate](EventsReminderSetStartDate.md)
- [Events.RemoveReminder](EventsRemoveReminder.md)
- [Events.SaveReminder](EventsSaveReminder.md)
- [Events.StructuredLocation.SetGeoLocation](EventsStructuredLocationSetGeoLocation.md)

### Example Databases

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

### Blog Entries

- [MBS FileMaker iOS SDK Extension 0.2](https://www.mbsplugins.de/archive/2016-06-22/MBS_FileMaker_iOS_SDK_Extensio/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker iOS SDK Extension 0.1](https://www.mbsplugins.de/archive/2016-05-04/MBS_FileMaker_iOS_SDK_Extensio/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 10th March 2016 , last changed 13th March 2016

  
[Events.NewEvent](EventsNewEvent.md) - [Events.Object.HasChanges](EventsObjectHasChanges.md)

[HTML Version](EventsNewReminder.shtml)