Actions in Dynamics 365 are a capability to create business logic that can be called in different ways such as through code or a workflow. They are not run on demand or automatically, but rather they are triggered by processes or code. If you wanted to run an action on demand you could call it from an on demand workflow. Actions take input, do something and may produce output.
Writing the action itself is straight forward. Go to Processes:
Select new and create a new Action for our case:
The window will open:
Note the Process Arguments section. This is the input for our action. As we will be sending an email, we can have a to and from email address here. Add a ToEmail and FromEmail field. These will be EntityReference fields to the User entity:
Now we can add some steps:
Add a Check Condition for the title:
Add the Send Email step and configure the email to use the input parameters:
Then assign the case to the developer:
The action should now look like this:
Activate the action. Now, we will create a Workflow to test the action:
Enter the parameters for the action:
Activate the workflow.
Now, create a case.
After saving the case, the case is reassigned to the developer and an email is sent:
In a future post I will show how to call the action through code.