Environment Variables

There are two environment variables that control what happens to the Permissions (Subscriptions) of a new Contact, Lead or Account that is created in Dynamics 365.

permissions

The permissions environment variable defines which Permissions are being added to a new Contact, Lead or Account.

It auto populates the Permission subgrid will all the possible Permissions, so that a user can directly flag them them when they are creating a new contact, lead or account.

The value needs to be a semicolon separated string of permissions that match the permissions in Spotler. For example: Newsletter;Productinfo;Servicenotifications;

⚠️ Warning: This setting only applies to newly created Contact, Leads or Accounts created in Dynamics 365. If a new contact is created in Spotler then this setting doesn't have any effect!

The Spotler connector will daily update this environment variable with the latest permissions defined in Spotler, so you don't need to update this yourself.

💡Tip: If you don't want auto populating of permissions (and stop the auto updating by the Connector) than add a value with only a semi-colon, like ;. Use the Value, not the Default value! This will disable this feature.

permissions_enabled_by_default

The permissions_enabled_by_default environment variable defines which Permissions should be enabled (subscribed) for a new Contact, Lead or Account.

By default, for all new created Spotler Permissions in Dynamics 365 will be disabled (unsubscribed). This environment variable gives the option the enable (subscribe) some or all of them.

The value needs to be a semicolon separated string of permissions that you want to enable (subscribe) when they are being created for a new Contact, Lead or Account. For example: Newsletter;Servicenotifications;

Instead of specifying every individual permission, you can also add the keyword: [All]. This will make all new created permissions enabled for new Contact, Leads or Accounts.

Value Effect
Empty or ; Every permission is disabled (unsubscribed)
Newsletter;Servicenotifications; These permissions will be enabled (subscribed). Others will be disabled (unsubscribed)
[All] Every permission is enabled (subscribed)
[All];Newsletter;Servicenotifications; Every permission is enabled (subscribed), except the ones explicit mentioned here. Those will be disabled (unsubscribed)!

⚠️ Warning: This setting only works on the permissions defined in the permissions environment variable!