We will create a new user by inputting the data we got from the Parent bot. To input data, we will use the Capture action as we did in Chapter 7, Sales Order Processing:
- Let's start by adding a Try block to handle any errors. We will add the Catch block toward the end to return a failure flag.Â
- Within the Try block, add a Step action with a Title of Create a new user in Freshsales.
- Let's now add the steps, starting with a Recorder Capture action to click on the Add user button in Freshsales. In Object detail, choose Window and then the User Admin Settings window from the drop-down. Click on Capture Object, as shown in the following screenshot, and point to the Add user button on Freshsales:
Then, set Action to Click and set the properties as shown in the following screenshot:Â
Make sure you choose and use stable object properties. You may need to do some trial...