DE Apex API Introduction

Distribution Engine (DE) includes an Apex API consisting of global apex classes to access Distribution Engine features programmatically. 

Availability

Class

Method

Description

n2de.DistributionEngineGlobal

getUserAvailabilityAllTeams

Return online status for every Salesforce user in a DE team.

n2de.DistributionEngineGlobal

getAvailabilityByUser

Return online status for a given Salesforce user Id. 

n2de.DistributionEngineGlobal

toggleUsers

Toggle a list of users on or offline in DE.

 

Team Members

Class

Method

Description

n2de.GlobalAPITeamMembers

addTeamMembersToTeam

Add new members to a team.

n2de.GlobalAPITeamMembers

removeTeamMembersFromTeam

Remove existing members from a team. 

 

Tags

Class

Method

Description

n2de.GlobalAPITags

createOrUpdateTags

Create a new tag collection or update an existing tag collection with new tags. 

n2de.GlobalAPITags

assignUserTags

Assign tags to users.

n2de.GlobalAPITags

unassignUserTags

Remove tags from users. 

n2de.GlobalAPITags

getAssignedUserTags

Retrieve the tags assigned to users in DE.

 

Rejection

Class

Method

Description

n2de.GlobalAPIReject

rejectAssignment

Reject one assignment giving a reason

n2de.GlobalAPIReject

rejectAssignments

Reject multiple assignments with reasons for each.

 

System 

Class

Method

Description

n2de.DistributionEngineGlobal

hasSchedulerFailed

Check if the Distribution Engine jobs have stopped running. 

n2de.DistributionEngineGlobal

runHealthChecker

Run health checker to check and auto-restart DE in the event of any issues. 

How did we do?

Rejection API

Contact