This function is used to add a new Exchange payload to the specified profile.
The ID of the profile you wish to add the exchange payload to
Name for the Exchange ActiveSync/Web Services Account
This string specifies the user name for this Exchange account. If missing, the devices prompts for it during profile installation. Format is <domain>\<username> e.g. mydomain.com\$LoginName$
Specifies the full email address for the account. The owners (primary user) email address must be injected upon delivery to the device. If not present in the payload, the device prompts for this string during profile installation.
Specifies the Exchange server host name (or IP address)
Specifies whether the Exchange server uses SSL for authentication.
The number of past days of mail to synchronize. No limit = 0. Allowed values: 0,1,3,7,14,31
Optional. Default false. If set to true, messages may not be moved out of this email account into another account. Also prevents forwarding or replying from a different account than the message was originated from
Optional. Default false. If set to true, this account will not be available for sending mail in third party applications
Optional. Default false. If set to true, this account supports S/MIME
If true, this account is excluded from address Recents syncing. This defaults to false.
How often the device will sync with the Exchange server. Allowed values: Automatic Push, Manually, 15 minutes, 30 minutes, 60 minutes
Whether to synchronize email between the device and the server
Whether to synchronize calendar between the device and the server
Whether to synchronize contacts between the device and the server
Whether to synchronize tasks between the device and the server
Comment you wish to be added to the changelog
Returns a boolean value. True if succeeded, false if not.