Events.DelegateSources
----------------------

Returns an unordered list of sources for all available delegates.

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

MBS( "Events.DelegateSources" { ; AsJSON } ) 

**MBS**( **"Events.DelegateSources";** /\* Returns an unordered list of sources for all available delegates. \*/  
**$AsJSON**) /\* Optional; Pass 1 to return result as JSON. \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| AsJSON | Pass 1 to return result as JSON. |  | Optional      Added in version **13.4**. |

### Result

Returns list or error.

### Description

Returns an unordered list of sources for all available delegates.  
By default, delegates are not included in an event store's sources. To work with delegates, you can create a new event store and pass in the sources, including sources returned from this method, that you're interested in.  
### Examples

Query delegate sources as JSON:

 MBS ( "Events.DelegateSources"; 1 )  
### Release notes

- **Version 13.4**
    - Added AsJSON parameters to [Events.Calendars](https://www.mbsplugins.eu/EventsCalendars.shtml), [Events.Source.Calendars](https://www.mbsplugins.eu/EventsSourceCalendars.shtml), [Events.Item.GetCalendar](https://www.mbsplugins.eu/EventsItemGetCalendar.shtml), [Events.defaultCalendarForNewEvents](https://www.mbsplugins.eu/EventsdefaultCalendarForNewEvents.shtml), [Events.defaultCalendarForNewReminders](https://www.mbsplugins.eu/EventsdefaultCalendarForNewReminders.shtml), [Events.SourceWithType](https://www.mbsplugins.eu/EventsSourceWithType.shtml), [Events.Sources](https://www.mbsplugins.eu/EventsSources.shtml) and [Events.DelegateSources](https://www.mbsplugins.eu/EventsDelegateSources.shtml) functions to return result as JSON.
- **Version 11.2**
    - Added [Events.DelegateSources](https://www.mbsplugins.eu/EventsDelegateSources.shtml) function for iOS.

### Blog Entries

- [MBS FileMaker Plugin, version 13.4pr1](https://www.mbsplugins.de/archive/2023-08-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 11.2pr1](https://www.mbsplugins.de/archive/2021-04-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 10th March 2016 , last changed 20th July 2023

  
[Events.CompletedReminders](EventsCompletedReminders.md) - [Events.Event.BirthdayContactIdentifier](EventsEventBirthdayContactIdentifier.md)

[HTML Version](EventsDelegateSources.shtml)