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
- 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
- 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.
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
Did you know?
North52 helps you automatically test Dynamics 365 projects
North52's TestShield helps you test Dynamics 365 projects:
- FASTER - Our no code solution delivers automated CRM project testing faster
- EASIER - Simple to use point-and-click interface to build simple or complex testing plans
- SMARTER - Lower your project risk and slash ongoing costs with automated process testing