Events.SetNotificationEvaluate
------------------------------

Installs a notification evaluation.

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

MBS( "Events.SetNotificationEvaluate"; Expression ) 

**MBS**( **"Events.SetNotificationEvaluate";** /\* Installs a notification evaluation. \*/  
**$Expression**) /\* The expression to evaluate.e.g. "Let ( $$Done = 1 ; 1 )" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Expression | The expression to evaluate. | "Let ( $$Done = 1 ; 1 )" |

### Result

Returns OK or error.

### Description

Installs a notification evaluation.  
This expression is evaluated whenever something in the calendar database changed.  
  
Notification is sent out when the database is changed by either an external process, another event store in the same process, or by calling saveEvent: or removeEvent: on a store you are managing. When you receive this notification, you should consider all objects instances you have to be invalid. If you had selected events for a date range using [Events.Events](EventsEvents.md), etc. for display, you should release them and re-fetch the events again. If you have an event you are actively using (e.g. you are currently viewing details for it or editing it), you can call [Events.Object.Refresh](EventsObjectRefresh.md) to try to revalidate it against the latest state of the database. If that method returns 1, you can continue to use the event, otherwise, you should release it and abandon what you were doing with it.   
  
This expression will also be evaluated if access to events or reminders is changed by the user.  
### See also

- [Events.Events](EventsEvents.md)
- [Events.Object.Refresh](EventsObjectRefresh.md)

### Blog Entries

- [MBS FileMaker Plugin, version 6.2pr2](https://www.mbsplugins.de/archive/2016-03-29/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 29th March 2016 , last changed 29th March 2016

  
[Events.SetNotification](EventsSetNotification.md) - [Events.Source.Calendars](EventsSourceCalendars.md)

[HTML Version](EventsSetNotificationEvaluate.shtml)