Configure Process Builder trigger for Automation Anywhere for Salesforce
- Updated: 2023/08/09
Process Builder is one mechanism to create a flow with an event-triggered bot. This method offers users an opportunity to automate processes while setting a required criteria for the bot to be triggered.
Prerequisites
- You should have the AAI RPA Bots Lightning Component User permission set applied.
- The object and criteria defined by the administrator and a result you aim to achieve by using a flow.
- Familiarity with mapping an object ID field to the record ID field required by the Run Bot class.
- Bot Configurations record ID if you are planning on Running Bot by Bot Configuration.
Procedure
- From Salesforce navigate to .
- Click New and enter the following details for the process flow: a process name, an API name, a description, and how the process starts.
- Click Save.
- Choose the object and specify when to start the process.
- Define your criteria.
- Click Add Action.
- In the Select and Define Action panel, enter configurations for your bot.
- Choose Apex for the Action Type.
-
Choose one of the following from Apex Class.
-
Run Bot By Bot Configuration
Use saved Bot Configurations from the Salesforce Connector.
- Enter the Bot Configuration ID.
- Choose the Record ID.
The Type should be Reference and the value should match the event Object.
-
Run Bot with API Key
Connect to your Control Room by entering your credentials to run a saved bot.
- Enter your CR Username.
- Enter the CR URL.
- Enter the CR API Key.
- Enter the Bot Name.
- Assign the Run As User Id for the
Bot Runner user that will execute the bot.
- Click Add Row.
- Select Run As User Id for Field.
- Enter the Bot Runner in Value.
- Optionally, click Add Row to select more
parameters to use in the bot output such as
Device Pool Id,
RecordId, and custom variables.
- Variable names must match the exact name of the input
variable defined within the bot.
If you are specifying multiple variable names, use a pipe to separate each (for example, inputOne|inputTwo|inputThree).
- Variable values are passed to the bot in the same order as variable names are provided (for example, as in the previous step inputValue1|inputValue2|inputValue3).
- Variable names must match the exact name of the input
variable defined within the bot.
-
Run Bot with Connection
Use a live connection to your Control Room to run a saved bot.
- Enter the Bot Name.
- Enter the Connection Id.
- Assign the Run As User Id for the
Bot Runner user that will execute the bot.
- Click Add Row.
- Select Run As User Id for Field.
- Enter the Bot Runner in Value.
- Optionally, click Add Row to select more
parameters to use in the bot output such as
Device Pool Id,
RecordId, and custom variables.
- Variable names must match the exact name of the input
variable defined within the bot.
If you are specifying multiple variable names, use a pipe to separate each (for example, inputOne|inputTwo|inputThree).
- Variable values are passed to the bot in the same order as variable names are provided (for example, as in the previous step inputValue1|inputValue2|inputValue3).
- Variable names must match the exact name of the input
variable defined within the bot.
-
Run Bot with Password
Connect to your Control Room by entering your credentials to run a saved bot.
- Enter the Bot Name.
- Enter your CR Username.
- Enter the CR URL.
- Enter the CR Password.
- Assign the Run As User Id for the
Bot Runner user that will execute the bot.
- Click Add Row.
- Select Run As User Id for Field.
- Enter the Bot Runner in Value.
- Optionally, click Add Row to select more
parameters to use in the bot output such as
Device Pool Id,
RecordId, and custom variables.
- Variable names must match the exact name of the input
variable defined within the bot.
If you are specifying multiple variable names, use a pipe to separate each (fo example, inputOne|inputTwo|inputThree).
- Variable values are passed to the bot in the same order as variable names are provided (for example, as in the previous step inputValue1|inputValue2|inputValue3).
- Variable names must match the exact name of the input
variable defined within the bot.
-
Run Bot By Bot Configuration
- Click Save.