US Trade Embargoes (Configuring Policy)

The US Trade Embargo policy is used to tag objects identified in an embargoed list of sources.

👍

Policy execution

For any policy to be executed, the following two steps are necessary.

  1. Setting up Process Builder in Salesforce Environment. Click here
  2. Configuring the policy in Fullcast Environment.

Some people, cities, states and countries are restricted from doing business with US. Embargo policy helps to identify these restricted person/entities.

Create Embargo Policy in Motion App

  1. Click on the Motion tab in fullcast.io.
  2. Select Policies by territory and click on Review policies.
  3. Click “Add New Policy”.
  4. From the Policy Catalog, select US Trade Embargoes.

Object Selection

Select an Object (Lead, Account or Contact) from the drop-down menu in the Review option for which the policy has to be executed.

Stage 1: Search Lists

  1. The search list provides a set of lists issued by the Government of United States. This lists consists of the details of the people, cities, or countries which are embargoed. To know in detail about this search list, click here
  2. Based on requirement, users can select one or more options (or all). It is mandatory to select at least one option.

🚧

Embargo Lists

The boxes you check in Stage 1 should be specific to the object chosen. (E.g., You wouldn't choose a persons list if the object you selected was "Accounts")

Stage 2: Search Accuracy

  1. Select this field to allow the system to select objects to cross-check that may not be a perfect or exact match for what the lists (Stage 1) are looking for.
  2. If fuzzy search is enabled, then set a number between 1-100 in the text-box next to Only tag if score is greater than or equal to so that the policy will run against the records which meet the specified percentage of matching criteria.

(Fuzzy search Algorithm need to be updated)

Stage 3: Set Search field options

  1. Click the [+] button next to Name Fields to add Name data fields that you want to cross-check against the lists you chose in Stage 1. (E.g., Person Name, Account Name)
  2. Click the [+] button next to Country Fields to add Country data fields that you want to cross-check against the lists you chose in Stage 1. (E.g., Leads or Contacts that have basic country information)

Stage 4: Tagging

  1. Select the field that needs to be tagged. If an entity/person is Embargoed, then it will be tagged with the matched sources in the given field.
    E.g. If you select “Embargo reason” in the tagged field, then all the matched sources should be tagged to this field.
  2. Click Save changes to create the policy.

Step 2: Setup Process Builder in Salesforce environment for policy execution

Log into the Salesforce environment and click Setup -->Process Builder.

  • Start creating the process builder for the policy by clicking the New button.
  • Give a process name in the window that pops-up. An API name that is unique for each policy is generated automatically after the process name is entered.
  • Add a description message, if needed.
  • Select an action from the drop-down menu. This will decide when to run the process.
  • Now in the UI that appears select the object for which the policy was created in Motion App. Also specify when to start the process and Save.
  • Now click the add criteria option in the decision box of the process builder.
  • Give a criteria name and select a criteria to execute the action.
  • Set conditions, when to take immediate actions. These conditions depends on Holdout Selection criteria that have been configured in the new policy that was created in Motion App.
  • For example, for the Holdout policy, the condition field that were set to pick the open opportunities was Amount is greater than 50K . Set the condition to take an action when the condition is met and an action when the condition is not met.
  • Add an action to be executed. The Action type field should be selected as “Apex”. Enter an Action Name . Select “Policy Handler” for Apex Class .
  • Set Apex Variables as following for

Account Embargo
Required Fields

  1. PolicyType: Set the Type of string with value “EmbargoesCompliance’ (case sensitive)
  2. RecordID : Use field reference in the type to select Account ID

Optional Fields

  1. InputVar1 : Passing record’s territory id
  2. InputVar2 : Calling the policy asynchronously.

Lead Embargo

Set Apex Variables as following for Lead Embargo policy as below

Required Fields

  1. PolicyType: Set the Type of string with value “EmbargoesCompliance
  2. ’RecordID : Use field reference in the type to select Lead ID

Contact Embargo

Set Apex Variables as following for Contact Embargo policy as below

Required Fields

  1. PolicyType: Set the Type of string with value “EmbargoesCompliance
  2. ’RecordID : Use field reference in the type to select Contact ID

Troubleshooting

To be updated