Scenario Overview
In this scenario we need to execute a Action process which has input parameters as part of a formula. To demonstrate this we will update the custom field Weekly Message in the Account entity based on data entered into the Description field.
North52 Decision Suite Solution
The North52 Decision Suite solution works like this:
- We create a formula to trigger whenever the Description is updated
- Once the formula has been triggered, it will execute an Action
- This Action will update the custom field Weekly Message
North52 Decision Suite Steps
Formula Steps
- Create a new formula of type 'Save - Perform Action'
- Set the Event to 'Create & Update'
- Set the Source Entity to 'Account'
- Set the Source Property to 'Description'
- Copy and paste the formula description below into the Formula Editor canvas
- Click Save
Action Steps
- Within Microsoft CRM go to Settings > Processes
- Click on New
- Provide a process name (in our example Generate Weekly Message)
- For Category, select 'Action'
- For Entity, select 'Account'
- Click OK
- In the form for the Action Process, click on the green + sign under the Hide Process Arguments heading
- On the right-hand side complete the fields:
- For Name, enter activitycount
- For Type, select Integer
- Delete everything in Description
- For the process steps, click on Add Step > Update Record
- Click on Set Properties
- Under the Weekly Message field enter "Weekly Message : ", leaving the cursor just after the colon
- In the Format Assistant on the righthand side, click on the Look for dropdown
- Under Local Values, click on Arguments
- From the second dropdown select activitycount
- Click Add
- Click OK
- Click Save and Close
- Click on the Activate button to activate the process
- You are now ready for testing.
Formula
ExecuteAction('new_GenerateWeeklyMessage',
'account',
[account.accountid],
SetAttributeAction('activitycount', 'Integer', [account.description] )
)
Wizard - ExecuteAction
Please see below the wizard you can use to create the ExecuteAction() function call used in this formula.
Note : You will need to create the Action beforehand. You will also need to add the SetAttributeAction part to it afterwards