Enable modern approval process
Purpose
Preparation
Before enabling modern approval process, we need to do following two things.
- Clean up all "Pending" project approval entities, because the modern approval process doesn't use "Pending" state, remaining "pending" project approvals won't be be processed by modern approval.
- Clear local browser cache. This includes internet file caches. With remaining cache, the legacy approval process could be triggered. Also any customization may block normal functionalities of modern approval process.
How to enable modern approval process?
- Go to "Project Parameter" folder.
- Open a project parameter, click "Feature Control" button, then click "Enable Modern Approvals" button.
- Make sure the change has happened by click "F5".
Background Approval Threshold
This attribute controls whether a batch of approvals can be processed immediately or asynchronously.
When the count of approvals in a batch is bigger than the threshold, the batch will be processed asynchronously by cloud flows. An integer value of 30 is a good start.
Modern asynchronous bulk approval process
- Make sure following processes are activated through customization page. The modern flow recurrently wake up every 5 minutes, then calls action "Project Service - Schedule Project Approval Sets". The action will schedule system jobs to process the existing queued/active approval sets. You can check the system jobs in customization page as well. You should be able to see them called every 5 minutes.
Legacy Process
If you see following information in a pop-up dialog, you are still using the legacy approval process.
"Click OK to close this dialog. The system will continue processing your selected records for approval."
Modern Process
If you see following information in a pop-up dialog, you are using the Modern approval process.
"The system has processed the requested action "Approve" for your selected records."
Check the system jobs
Check if following system job is running "Project Service - PostApprovalSetmsdyn_ScheduleProjectApprovalSets" every 5 minutes.
Explore approval set
You can see a project approval linked to an approval set in Pending Approvals and Failed Approvals views.
You can open the linked approval set from a project approval form.
Main attributes for Approval Set.
| Attribute/Tab | Function |
|---|---|
| Logs | you can check logs tab for approval operations. |
| Entry Type | Entity type of Time, Expense and Material. |
| Action Type | Approval operation of the approval set. |
| Target Status | The target status of a Time/Expense/Material entity. |
| Status Reason | The status of the approval set. |
| Life Time | How many retries can take on the approval set. |
| Pending Approvals | Project approvals in the approval set. |










Comments
Post a Comment