Multi Object Distribution System – Object Setup

Updated 08/09/2022

We need two objects for this project the first Distribution Container is what it sounds like and is the container for users in that distribution queue. Distribution users are child records of the Distribution containers which hold the individual user.

Distribution Container Setup

ActionNameType
Create ObjectDistribution Container
Name FieldNameText Input
Create FieldActiveCheckbox
Create FieldNumber of Times RanNumber(18,0)
Create FieldNumber Of UsersRollup(Distribution users)
Create FieldNext AssignmentNumber(18,0)
Note: You will need to create the rollup after you have created the child object

We will use the name field to identify the container used in the setup flow and user management. Active will need to be ticked for it to run the distribution else it will pass through with no value. Number of Time Ran this will help see how many times this container has been updated. The number of users will act as a counter to be able to reset the count and the Next assignment will be the next number of the user to assign.

Distribution User Setup

ActionNameType
Create ObjectDistribution User
Name FieldNameDU-{0000}
Create FieldDistribution ContainerParent(Distrubtion Container)
Create FieldActiveCheckbox
Create FieldNumberNumber(18,0)
Create FieldUserLookup(User)

We will use an auto number for this as you will have multiple Distribution Users of the same user across multiple distribution containers. The container is the parent Distribution Container. Active will allow you to set individual users to inactive and active to handle absences. The number will be used to hold the number of the individual record in the queue. The user is a lookup to the user object.

Lightning Record Page

Lastly, in part 1 of this project, we will build a lightning record page for the Distribution Container. Containing the related detail and related distribution user. Editing the page layout for the related list containing User, Number, and Active. The end result should look like the image below.

In the example distribution container, I have manually created records and would recommend you do too to make sure you have set up the fields correctly and laid them out. If you are ready to jump into Part 2 – Distribution Flow.

Published 23/08/2022
Category: Distribution, Tutorials

Other Posts