Use workflows to automate repetitive and predictable processes.
To design a workflow, you set up:
Name | Responsible | Description |
---|---|---|
Create start and end tasks |
Designer |
Each workflow must start with a Start task and end with an End task. This topic explains how to create a start task and an end task. |
Set up a task to create or update a case |
Designer |
You can set up a task that creates or updates a case. For each task to create or update a case, you define the case settings. Based on these settings, the case is created or updated. For a new case, you can also define for which record an association is added to the case. If a task of type Create/update case is run, and the case action is:
For more information on cases, refer to Case management. |
Set up a task to create a document |
Designer |
You can set up a task to create a document based on a document type. The document type defines the contents, the format, and the target of the document. Each created document is added to the Document message queue and can be processed from there. |
Set up a task to call a class method |
Designer |
You can set up a task to call a class method. Usually, you use a custom class. You can only use static methods with no parameter or one parameter defined. If you use a method with one parameter that accepts a record and the workflow is triggered by a:
If you use a method with no parameter or you don't pass a record for a method with a parameter, the method is called without input. |
Set up a task to update a record field |
Designer |
You can set up a task to update a record field of an existing record in a D365 FO table. The workflow input records, as defined by the query or staging table of the trigger, are the input for the task. When the task is run, the field is updated for the relevant workflow input records. |
Set up a task to create or update an activity |
Designer |
You can set up a task that creates or updates an activity. For each task to create or update an activity, you define the activity settings. Based on these settings, the activity is created or updated. You can also define for which record an association is added to the activity. The workflow input records, as defined by the query or staging table of the trigger, are the input for the task. When the task is run, first a check is done if the parent type is enabled for activities. If so, the defined activity action is checked. Accordingly, an activity is created or updated. If an activity is:
You can view the activities here: Common > Common > Activities. |
Set up a task to call a trigger |
Designer |
You can set up task to run a trigger. A trigger is used to start a workflow. So, you can use a Call trigger task to start another workflow from the current workflow. |
Set up a task to make a decision |
Designer |
You can set up a task to make decisions based on conditions. You can set up a hierarchy of decisions. For each decision, you define the condition and what comes next if the condition is met or not. In these fields, you define what comes next if the condition is:
The workflow input records, as defined by the query or staging table of the trigger, are the input for the task. When the task is run, based on the workflow input records, the conditions are checked, and decisions are made accordingly. |
Define task relations |
Designer |
Except for the End task, for each task in the workflow, you must define the next task. For a task of type Decision, you can define several next tasks based on the outcome of the decision. For each task in a workflow, the workflow input records are the input for the task. The workflow input records are defined by the query or the staging table of the trigger. |
Name | Responsible | Description |
---|---|---|
Create start and end tasks |
Designer |
Each workflow must start with a Start task and end with an End task. This topic explains how to create a start task and an end task. |
Set up a task to create or update a case |
Designer |
You can set up a task that creates or updates a case. For each task to create or update a case, you define the case settings. Based on these settings, the case is created or updated. For a new case, you can also define for which record an association is added to the case. If a task of type Create/update case is run, and the case action is:
For more information on cases, refer to Case management. |
Set up a task to create a document |
Designer |
You can set up a task to create a document based on a document type. The document type defines the contents, the format, and the target of the document. Each created document is added to the Document message queue and can be processed from there. |
Set up a task to call a class method |
Designer |
You can set up a task to call a class method. Usually, you use a custom class. You can only use static methods with no parameter or one parameter defined. If you use a method with one parameter that accepts a record and the workflow is triggered by a:
If you use a method with no parameter or you don't pass a record for a method with a parameter, the method is called without input. |
Set up a task to update a record field |
Designer |
You can set up a task to update a record field of an existing record in a D365 FO table. The workflow input records, as defined by the query or staging table of the trigger, are the input for the task. When the task is run, the field is updated for the relevant workflow input records. |
Set up a task to create or update an activity |
Designer |
You can set up a task that creates or updates an activity. For each task to create or update an activity, you define the activity settings. Based on these settings, the activity is created or updated. You can also define for which record an association is added to the activity. The workflow input records, as defined by the query or staging table of the trigger, are the input for the task. When the task is run, first a check is done if the parent type is enabled for activities. If so, the defined activity action is checked. Accordingly, an activity is created or updated. If an activity is:
You can view the activities here: Common > Common > Activities. |
Set up a task to call a trigger |
Designer |
You can set up task to run a trigger. A trigger is used to start a workflow. So, you can use a Call trigger task to start another workflow from the current workflow. |
Set up a task to make a decision |
Designer |
You can set up a task to make decisions based on conditions. You can set up a hierarchy of decisions. For each decision, you define the condition and what comes next if the condition is met or not. In these fields, you define what comes next if the condition is:
The workflow input records, as defined by the query or staging table of the trigger, are the input for the task. When the task is run, based on the workflow input records, the conditions are checked, and decisions are made accordingly. |
Define task relations |
Designer |
Except for the End task, for each task in the workflow, you must define the next task. For a task of type Decision, you can define several next tasks based on the outcome of the decision. For each task in a workflow, the workflow input records are the input for the task. The workflow input records are defined by the query or the staging table of the trigger. |