Widget Flow Actions in CloudFiles
Enhance automation with CloudFiles' Custom Actions through internal widgets in Salesforce, allowing you to trigger Screen Flows or Autolaunched Flows directly from the widget. You can configure both Resource Actions (for individual resources) and List Actions (for multiple resources) to streamline your document management workflows.


Ensure you have the following ready before setting up widget flow actions:
- Access to the CloudFiles Document Management App in Salesforce.
- Required flows (Screen Flow or Autolaunched Flow) configured in your Salesforce environment.
- Familiarity with creating flow input variables.
Follow these steps to configure List Actions in the CloudFiles widget -
- Navigate to the CloudFiles Document Management App.
- Open the "Widget Configuration" page.
Scroll to the bottom of the page, where you'll find the Resource Actions & List Actions section. Refer to the image below for a visual understanding -

For each action (Resource or List), specify the following attributes -
- Label - The name of the action displayed on the widget.
- Flow URL- The URL of the flow to be triggered.
Note: The flow URL format is /flow/CloudFiles_add_to_approval_pack
- Flow Type- Select the type of flow from the dropdown (Screen Flow or Autolaunched Flow).
To pass selected resources (files/folders) and the current record ID to the flow, create the following two variables -
- resource:
- Type - Variable
- Data Type - Apex Defined
- Apex Class - clds__Resource
- Allow Multiple Values (Collection) - False
- Available for Input - True
- recordId:
- Type - Variable
- Data Type - Text
- Allow Multiple Values (Collection) - False
- Available for Input - True
- resources:
- Type - Variable
- Data Type - Apex Defined
- Apex Class - clds__Resource
- Allow Multiple Values (Collection) - True
- Available for Input - True
- recordId:
- Type - Variable
- Data Type - Text
- Allow Multiple Values (Collection) - False
- Available for Input - True
Note - You can choose any name for these variables; the suggested names are for guidance.
Note - You can also use a String variable, which can be static text or {!recordId} referencing the current record ID from which the action is invoked.
You can then use the flow URL in this format -
For Resource Action
For List Action
When the user clicks the resource action or list action, your flow will be triggered with the variable values passed into the flow variables. Refer to the images shown below -

