Getting Started
Installation
Permissions
Widget & Inline Page
Classic - Distribution Engine Inline Page
Lightning - Distribution Engine Record Detail
Widget - Introduction
Adding Widget to a Lightning App
Adding Widget to a Lightning Page
Adding Widget to Salesforce Mobile
Adding Widget to a Classic Console
Adding Widget to Classic Homepage
Changing the Widget logout reason list
Distributor Test Tool (Legacy)
Before you Begin
Installation Overview
Whats in the Package
Triggers
Installation Process
Managed Package Licences
Page Layouts
Leaving A Review
Uninstall
Upgrading Distribution Engine
Configure Distribution Engine
Distribution Classifier
Territories
Territories Introduction
Create a Map
Import Territories
Territory Map Zoom Levels
Object Settings
Detecting Territories
Settings
Territories - Technical Details
Territory Distributor
Lead Matching
Lead Matching - Introduction
Duplicate Rule Setup
Related Owner - Lead Matching
Lead matching vs lookup owner
Classifier Lead Matching Setup
Lead to Account/Contact/Lead Settings
Custom Classification
Custom Classification - Introduction
Stamp Groups
Stamps
Custom Classification - Synchronized Tag Collections
Lead Auto-Conversion
Lead Auto-Conversion - Introduction
Lead De-Duplication
Lead Conversion
Configuring Auto-Conversion
Auto-Conversion Rules
Distribution Classifier - Introduction
Backfill
Delay Filters
Distribution Teams
Distributors
Distribution Methods
Distribution Methods - Introduction
Lookup Owner
Load Balancing
Round Robin
Related Owner
Sticky Assignment
Distributors Introduction
Distributor Types
Standard Distributor Settings
Pull Distributor Settings
Trigger Distributor Settings
Manual Distributor Settings
Distributor Sources
Distributing from a Designated User
Distributor Filters
Distributor Team Member Filters
Distributor Sort Order
Advanced Filter Mode
Distributor Test Tool
Weighting and Caps
Distribution Hours
Tracking & SLAs
Team Settings
Distribution Teams Introduction
Distribution Assignment Process view
Team Summary
Team Members
Team Availability
Team Performance
Assignment Rejection
Post Assignment
Stamp Rejection
Distribution Tags
Distribution Availability
Distribution Availability
Shift Hours
Out of Office
Distribution Holidays
Holiday Regions
Regional Holidays
User Availability Toggle
Distribution Settings
Distribution Settings
Calendar Integration
Advanced Settings
Distribution Engine Running User
Licensed users list
Export & Import
Import Errors
Trigger Settings
Email Notifications
Email Notifications - Introduction
Custom Email Notifications
Disabling Standard Email Notifications
Customising the Email Template
Disabling Custom Email Notifications
From Email Address
Email Notification as Flow
Assignment Simulator
Assignment Simulator - Introduction
Configure Assignment Simulation
Assignment Simulator Result Explorer
Advanced
Q2Q teams
Integrating InsideSales.com power dialer
Pardot
Auto archive feature
Uploading tags via dataloader
Salesforce Mobile
Tuning Distribution Engine
Setup Introduction
Queue Basics
Queues
Distribution Sync
Monitoring
Distribution Console
Console Introduction
Application Monitoring
Today's Distributions
Sources Console
Availability Calendar
Distribution Logs
Distribution Logs
Distribution Logs List
Territories Logs List
Lead Matching Logs List
Custom Classification Log List
Auto-Conversion Logs List
Object Sync Logs List
Scheduler Logs List
Archive Logs List
Exporting Log Data
Distribution Analytics
Distribution Engine Details Object
Distribution Engine Dashboard
Salesforce Reports
Reports - Leads and Distribution Logs
Change History
Setup Examples
Skill Based Matching
Assigning Contacts - Pairing SDRs and AEs
Delaying Distribution
Enforce Cap for Manually Assigned Records
Criteria Caps
Salesforce Admins
Workflow Rule Examples
Formula Examples
Domain Formula
Timezone Bucket Formula
Has Activity Formula
Territory Formula
Age Formula
Distribution Engine Details Formula
id Field to Text
Flow Examples
Chatter Notifications
Slack Notifications
Desktop or Mobile Notifications
Custom Assignment Rejection
Classify on Address Change
Assign on Action
Process Builder Examples
Process Builder - Avoiding Clashes
Opportunity Assignment - Updating Related Accounts & Contacts
Rejection API Process
Assign License and Permission Set on Team Member Addition
Assign License on Team Member Addition
Tasks on Record Assignment by Distribution Engine
Information for New Admins
Validation Rules
Developers
Apex API
Availability API
Classifier API
Out of Office API
Tags API
Team Members API
DE Apex API Introduction
Rejection API
System API
Trigger Distribution API
Apex Trigger Examples
Omni-Channel Presence Integration
Salesforce Presence Integration
Invalid Email trigger
Custom Triggers
Visualforce Examples
Troubleshooting
Warnings and Errors
Health Checker Messages
Scheduler Restarted
Distributor Failures - Records on Hold
Assignment Errors
Classifier Errors
Apex CPU time limit exceeded
Timeout when deleting a Team Member or Distributor
Records Stuck / Not Being Assigned
Support
Previous Releases
2.9
3
4
4.12
4.15
Armadillo
Bison
Chameleon
Dragon
Dragon beta release - install guide
Eagle upgrade process
Eagle
Fox
Gorilla
Gorilla Upgrade Process
Hummingbird
Hummingbird Upgrade Process
Impala
Impala Upgrade Process
Jellyfish
Jellyfish Upgrade Process
Koala
Koala Upgrade Process
Llama
Llama Upgrade Process
Meerkat
Meerkat Upgrade Process
Upgrade Links
Introducing Nightingale!
Nightingale Release Notes
Nightingale Upgrade Process
Frequently Asked Questions
Legacy Widget - New status
Distribution Engine Aborted
Alerts not Firing
Distribution Engine Delayed
Can one Distributor Assign from Multiple Queues / Users?
Can't See Distribution Engine
Distribution Engine Not Running
Manual Shutdown of Distribution Engine
Exclude members from Holidays
Distribution Engine Health Checker Restart
Dashboard Running User Error
Assignments going to wrong user
Contact Support
Grant Login Access
Upgrading Distribution Engine Steps
Purchase
Purchasing Steps
Purchasing FAQs
Support Packages
Legal Agreement Details
GDPR
Policies
Migrating Licences
Contact us
What Tier am I on?
Features by Tier
Latest Release
- All Categories
- Salesforce Admins
- Flow Examples
- Custom Assignment Rejection
Custom Assignment Rejection
Updated by Simon Maskell
There are different ways that a user can reject an assignment in DE. Some of the options are via the Distribution Logs page, the Record Detail Component or the Widget. This article goes through an example of using a Salesforce Flow with our Rejection API that could be triggered from a button on the record page.
Step 1 - Create the flow
- Go to Setup > Process Automation > Flows
- Click New Flow
- Select "Screen Flow"
- Click Create
Step 2 - Add record id resource
In order to pass in a record to a screen flow, a resource needs to be created with the name "recordId".
- In the Toolbox on the left, click New Resource
- Resource Type: Variable
- API Name: recordId
- Data Type: Record
- Object: The relevant object type
- Available for input: Check
- Click Done
Step 3 - Create the screen
It's up to you what you want to include on the screen. It could show details of the current record, it could prompt the user for questions to determine why they are rejecting it or what the next steps should be. In terms of what information DE needs, it requires the id of the record and a reason for the rejection. If specific rejection reasons are configured, then that reason must match one of those from the configured list.
For this example we will just configure the flow screen to ask the user to select from a predefined list of rejection reasons.
- Click the Add Element button and select "Screen"
- Label: Assignment Rejection
- Select "Picklist" from the Components on the left
- Label: Rejection Reason
- Choice: Add your rejection reasons - these will be created as resources
- Click Done
Step 4 - Reject the record
This step uses the DE Rejection API, see this article for more information.
- Click the Add Element button and select "Action"
- In the category "Distribution Engine" search for the action "DE Reject Record"
- Label: Reject Record
- Reason to reject: Under "Screen Components" select the Picklist "Rejection_Reason"
- Record id: {!recordId.Id}
- Click Done
Step 5 - Display errors
There are some reasons why the assignment rejection process may fail, these are detailed at the end of the Rejection API article. Due to this, it is useful to handle these errors and inform the user why something failed. In this example we will display the errors on the screen.
- Click the Reject Record action and select "Add Fault Path"
- On the fault path click the Add Element button and select "Screen"
- Label: Rejection Failed
- Select "Display Text" from the Components on the left
- API Name: Failure_Message
- Contents: An error occurred while rejecting this record: {!$Flow.FaultMessage}
- Click Done
- You will end up with the following Flow
Step 6 - Save the flow
- Click Save on the toolbar
- Flow Label: Reject Assignment
- Click Save
- Click Activate on the toolbar
Step 7 - Trigger the flow
The flow can by triggered in a few different ways, one option is to create an action button and add it to the page.
- Go to Setup > Object Manager
- Select the relevant object type
- Click Buttons, Links and Actions
- Click New Action
- Action type: Flow
- Flow: Reject Assignment
- Label: Reject Assignment
- Click Save
- Back in the object manager, click Page Layouts
- Select which layout you want to add the button to
- If not already done, click the "override the predefined actions" link in the "Salesforce Mobile and Lightning Experience Actions" section
- In the actions bar at the top select "Mobile & Lightning Actions"
- Drag the Reject Assignment button onto the "Salesforce Mobile and Lightning Experience Actions" section
- Click Save