Events.RefreshSourcesIfNecessary
--------------------------------

Cause a sync to potentially occur taking into account the necessity of it.

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

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

none

### Result

Returns OK or error.

### Description

Cause a sync to potentially occur taking into account the necessity of it.  
You can call this method to pull new data from remote sources. This only updates the event store's data. If you want to update your objects after refreshing the sources, you should call refresh on each of them afterwards. On iOS, this sync only occurs if deemed necessary. On OS X, this will occur regardless of necessity, but may change in a future release to match the iOS behavior. On WatchOS, initiating sync is not available. Sync will occur automatically with the paired iOS device.  
### Release notes

- **Version 9.3**
    - Fixed problem with [Events.RefreshSourcesIfNecessary](http://www.mbsplugins.eu/EventsRefreshSourcesIfNecessary.shtml).

### Blog Entries

- [MBS FileMaker Plugin, version 9.3pr1](https://www.mbsplugins.de/archive/2019-06-03/MBS_FileMaker_Plugin_version_9/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

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

  
[Events.RecurrenceRule.WeeksOfTheYear](EventsRecurrenceRuleWeeksOfTheYear.md) - [Events.Reminder.GetCompleted](EventsReminderGetCompleted.md)

[HTML Version](EventsRefreshSourcesIfNecessary.shtml)