DE Apex API Introduction
Distribution Engine includes an Apex API consisting of global apex classes to access Distribution Engine features programmatically. Availability. Class Method Description n2de.DistributionEngineGloba…
Distribution Engine includes an Apex API consisting of global apex classes to access Distribution Engine features programmatically.
Availability
Class | Method | Description |
n2de.DistributionEngineGlobal | Return online status for every Salesforce user in a DE team. | |
n2de.DistributionEngineGlobal | Return online status for a given Salesforce user Id. | |
n2de.DistributionEngineGlobal | Toggle a list of users on or offline in DE. |
Classifier
Class | Method | Description |
n2de.GlobalAPIClassifier | Perform the requested classification on a given list of records. | |
n2de.GlobalAPIClassifier | Perform the requested classification on a given list of records, accepts multiple configurations. |
Out of Office
Class | Method | Description |
n2de.GlobalAPIOutOfOffice | Create out of office entries for the given users. | |
n2de.GlobalAPIOutOfOffice | Delete an out of office entry. | |
n2de.GlobalAPIOutOfOffice | Update an out of office entry. |
Rejection
Class | Method | Description |
n2de.GlobalAPIReject | Reject one assignment giving a reason | |
n2de.GlobalAPIReject | Reject multiple assignments with reasons for each. |
Team Members
Class | Method | Description |
n2de.GlobalAPITeamMembers | Add new members to a team. | |
n2de.GlobalAPITeamMembers | Remove existing members from a team. | |
n2de.GlobalAPITeamMembers | Remove a user from all teams they are a member of. | |
n2de.GlobalAPITeamMembers | Assign a shift to existing team members. |
Tags
Class | Method | Description |
n2de.GlobalAPITags | Create a new tag collection or update an existing tag collection with new tags. | |
n2de.GlobalAPITags | Assign tags to users. | |
n2de.GlobalAPITags | Remove tags from users. | |
n2de.GlobalAPITags | Retrieve the tags assigned to users in DE. |
Trigger Distribution
Class | Method | Description |
n2de.GlobalAPITriggerDistribution | When called from a trigger, will distribute all of the records that are part of that trigger, using the configured trigger distributors. If a "Is Trigger Enabled" field is defined, will only distribute those records where the field is checked. The records will be updated with the assignee but won't be saved, that will be left for the trigger. | |
n2de.GlobalAPITriggerDistribution | When called from a trigger, will distribute all of the provided records using the configured trigger distributors. The records will be updated with the assignee but won't be saved, that will be left for the trigger. | |
n2de.GlobalAPITriggerDistribution | Will distribute all of the provided records using the configured trigger distributors. The records will be updated with the assignee and saved. |
System
Class | Method | Description |
n2de.DistributionEngineGlobal | Check if the Distribution Engine jobs have stopped running. | |
n2de.DistributionEngineGlobal | Run health checker to check and auto-restart DE in the event of any issues. |
How did we do?
Rejection API