Flow Actions
Misc Flow Actions
Delay
introduction the cloudfiles delay action can be used in flows to add a pause to the flow execution, especially in asynchronous flow executions as the salesforce flow builder doesn't provide the option to add a pause element or schedule an asynchronous flow, this flow action comes in handy in scenarios where you might need it the image below provides an overview of the input parameters and how this action appears in a salesforce flow detailed descriptions of the input and output parameters are provided in the following sections what this action does example use case you have automations set up to create lead folders for every new lead record and account folders for account records when a lead is converted, you want to move its folder into the newly created account folder automatically challenges lead conversion creates an account record account folder creation is triggered asynchronously when an account is created moving the lead folder immediately might fail if the account folder hasn’t been created yet solution use the cloudfiles delay action to introduce a safety pause in the lead folder movement automation this ensures that the account folder is created before attempting to move the lead folder into it steps trigger the automation configure the flow to trigger when a lead is converted (an account record is also created simultaneously) add a delay use the cloudfiles delay action to pause the flow for a duration (e g , 10 seconds or 10,000 milliseconds) move the folder after the delay, proceed with the logic to move the lead folder into the corresponding account folder key benefits ensures sequential execution handles asynchronous processes by providing a buffer for dependent operations improves reliability reduces risks of errors caused by unavailability of resources (e g , account folder) simplifies automation adds flexibility to flows that involve time sensitive operations this action is especially helpful in scenarios where external processes or asynchronous operations must complete before proceeding input parameters delay (milli seconds) description specify the pause duration in milliseconds example to add a pause of 10 seconds, input 10000 use caution avoid specifying a delay longer than 20 seconds , as salesforce flows may time out due to platform limits output parameters this action does not produce any output its sole purpose is to introduce a delay in the flow execution