Using ClickLink Rules in a Salesforce Flow
Salesforce flows are applications which automate business processes by collecting, updating, editing and creating information.
For full details on working with Salesforce flows, see your Salesforce documentation.
To use a ClickLink rule in a flow:
- Create the ClickLink rule you want to use in the process. See Creating a Rule for more information.
- Go to Setup | Create | Workflow & Approvals | Flows and click New Flow.
- In the Flow Designer, on the Palette tab, go to Apex.
- Select the rule you want to use as an action in the flow, drag it to the main canvas and configure the following settings:
Recommended Settings to Configure Setting/Tab Description/Setting Options Name Enter a name for the action. Not applicable. Input Rule ID Create a variable to contain the rule ID as follows:
Unique Name – enter an name for the variable.
Data Type – select Text.
Input/Output Type – select a suitable type.
Default Value – enter the rule's ID.Source Object ID Create a variable to contain the source record ID as follows:
Unique Name – enter an name for the variable.
Data Type – select Text.
Input/Output Type – select a suitable type.
Tip: As an example, enter a source record ID to run the rule on.Output Source From the drop-down list, select a suitable type. Target Create a text variable to contain the target ID. This is the record ID of the object created by the ClickLink rule. - Click OK. You now have an action in the flow which evaluates the rule.
- Click Save, enter a name for the flow, select Autolaunched Flow and click OK.
- If your flow contains source record IDs, click Run. The flow designer runs the flow and executes your ClickLink rule.
SECTIONS