You can set up an SQL trigger to start a data entry workflow automatically when a record is inserted or updated in a D365 F&SCM table.
This is especially useful if you have third-party integrations that import data into D365 F&SCM. It ensures that all new or updated data, whether manually entered or imported, follow a structured and controlled validation and approval workflow.
Note:
When a record is inserted or updated in a D365 F&SCM table for which data entry workflow SQL triggering is set up, the table event (Insert or Update) is logged in the Data synchronization log. To start a data entry workflow, you must process the logged table events from the data synchronization log. This processing is done based on the Workflow template SQL trigger assignment.
Name | Responsible | Description |
---|---|---|
Set up SQL triggers |
Designer (Data entry workflow) |
You can automatically start a data entry workflow with a SQL trigger. You can generate the SQL triggers in your database. So, no custom coding is required in the database. Before you generate the SQL triggers in your database, define the desired SQL triggers. |
Set up dynamic queries |
Designer (Data entry workflow) |
Use a dynamic query to find one or more records in the database. The found records are the input for further processing. You can use a dynamic query on a data entry workflow template SQL trigger assignment. To define a query range, you can use a function. |
Assign data entry workflow templates to SQL triggers |
Designer (Data entry workflow) |
When a record is inserted or updated in a D365 F&SCM table for which data entry workflow SQL triggering is set up, the table event (Insert or Update) is logged in the Data synchronization log. This topic explains how to set up the Workflow template SQL trigger assignment. Note: You set up a workflow template SQL trigger assignment for a specific data entry workflow template version. |
Name | Responsible | Description |
---|---|---|
Set up SQL triggers |
Designer (Data entry workflow) |
You can automatically start a data entry workflow with a SQL trigger. You can generate the SQL triggers in your database. So, no custom coding is required in the database. Before you generate the SQL triggers in your database, define the desired SQL triggers. |
Set up dynamic queries |
Designer (Data entry workflow) |
Use a dynamic query to find one or more records in the database. The found records are the input for further processing. You can use a dynamic query on a data entry workflow template SQL trigger assignment. To define a query range, you can use a function. |
Assign data entry workflow templates to SQL triggers |
Designer (Data entry workflow) |
When a record is inserted or updated in a D365 F&SCM table for which data entry workflow SQL triggering is set up, the table event (Insert or Update) is logged in the Data synchronization log. This topic explains how to set up the Workflow template SQL trigger assignment. Note: You set up a workflow template SQL trigger assignment for a specific data entry workflow template version. |
Related to | Notes |
---|---|
Manage workflows |
  |
Process data synchronization log |
  |
Set up data entry workflow SQL triggers |
  |