Enabling and Executing Policies
- Flow
- Triggers
Scheduler
Using Flow
In order for a fullcast.io policy to work in Salesforce, you must enable it through your Salesforce instance by creating a process for that policy. The Flow in Salesforce is a tool that you can use to automate a business process. Your Fullcast Business Partner will assist in setting this up if you've purchased our Data Desk services.
In order to set up the Flow for ANY Fullcast policy in Salesforce:
- Log in to your Salesforce instance.
- From Setup, type in Flow into the Quick Find search box.
- Select Flow, and click New.
- Give the new process a Name and Description. From the drop-down list under The process starts when select It's invoked by another process.
Click Save.
- Click Add Object. Select an object to associate with the process from the drop-down list. Click Save.
Next, define the criteria that must be true before the process can be executed.
- Click Add Action. From the drop-down menu, select Apex for the action type.
- Fill in an Action Name, and select Policy Handler from the Apex Class drop-down menu.
- Now, set the mandatory Apex variables.
- For the policy type field: select String for the variable type, and under Value, enter the policy name you'd like to set up.
- For the record ID field: select Field Reference for the variable type, and under Value, search and enter Lead ID.
- For the Input Value 1 field: select Field Reference for the variable type. Under Value, search and enter what you'd like the tag to be determined by. If you want to filter by Lead source, for example, you must enter Lead Source in the value section.
- For the Input Value 2 field: select Field Reference for the variable type. Under Value, search and enter for what you'd like the skills to be determined by. If you want to filter by Status, for example, you must enter Status in the value section.
- For the Input Value 4 field: select Field Reference for the variable type. Under Value, enter "WILDCARD" to use wildcard operators. Input Value 4 is only used for Routing.
For the Input Value 5 field: select Field Reference for the variable type. Under Value, enter "ASYNC" to make the motion package run asynchronously.
Input Values vary by policy.
Based on the policy requirements, you'll need to pass a specific combination of Input Values in the Flow. This varies by policy and is highly customizable to the business requirements. As an example, Input Value 4 (Wildcard) is only used in routing policies.
- Click Save when you've finished setting the Apex variables.
- When you're done defining the criteria for your process, click Activate.
Keep your Flow
It is advised that the Flow setup be very light, as it is only used to trigger a Fullcast Motion policy upon a specific event or point in time at which the policy needs to activate. Here, you're defining those circumstances, but in the Fullcast Motion Module policy pages, you're defining the specific actions to execute.
Hierarchy and Inheritance of Policies
In the fullcast.io hierarchy, policies don't need to be enabled at every node. As long as a parent node in the hierarchy has a policy defined, all immediate children of that parent are able to execute that policy. However, if you'd like to execute a policy at only the child level of a particular parent node, there must still be a placeholder policy in place at the parent level.
Setting up routing functions in Salesforce
The configuration of Best Matched Accounts in Salesforce.
The configuration of your Lead Routing Policy in Salesforce.
The configuration of your Tenant Id.
Setting up Routing for any object
- Log into your Salesforce instance.
- Go to Setup, and search for Custom Metadata Types in the search bar.
- Look for the Fullcast Policy Setting in the list.
- Click Manage Records for Fullcast Policy Setting.
- Click Edit next to the Tenant Id record.
- Enter the tenant ID for your Fullcast instance where it says Field Value.
- You can find your Fullcast tenant ID by clicking on your user icon in the top right corner of your screen
Click Save to complete the tenant ID configuration.