How to use Relative Date capability in Selection Criteria and Active Record Criteria 

Many times in Salesforce it is useful to use certain Relative Date keywords in a Date field instead of having to select a specific date. For example, in many scenarios it is more convenient to be able to view/use records assigned ‘TODAY’ instead of on a specific date which will need changing manually to reflect correct records. In Salesforce, we have many such keywords in use such as TODAY, YESTERDAY, TOMORROW etc and Q-assign is now able to support them as well. 

 

This capability in Q-assign also allows for more flexibility such that users will now be able to use Relative Dates such as ‘Last N Days’ or ‘TODAY + 5’ without having to create any formula fields in Salesforce. Please see the following steps to setup Relative Dates in Q-assign: 

 

Create a new Assignment Group (AG) or edit an existing AG  

In Selection Criteria or Active record criteria select a "DateTime" field in the Field Column 

 

1. When a DATETIME field is selected 

Graphical user interface, application

Description automatically generated 

 
 

2. When a DATE field is selected 

Graphical user interface

Description automatically generated 

3. When FixedDate is selected for a Date or DateTime field 

Upon saving, under the value column only date that was selected from data picker will be displayed as shown below 

Graphical user interface

Description automatically generated 

 

4. When NOW or TODAY relative date is selected for a DateTime field 

Graphical user interface, application

Description automatically generated 

5. When a relative date literal with the format LAST_n_DAYS:n is selected for a Date or DateTime field 

Where the offset is not left blank or set to 0, a saved relative date will show in the format LAST N DAYS + n Day(s) (here 6 represents the number of days as the date literally says LAST N DAYS). 

Graphical user interface, application

Description automatically generated 

 

Please set up the rest of the Assignment Group as per your requirements. Please contact us at support@ortooapps.com for any questions.