How to do it...

To create the manual workflow task, follow these steps:

  1. We need a new Base Enum for the inspection status, as this will be used both to see whether a vehicle has been inspected and also to control the state of the workflow task; name it ConWHSVehInspStatus and create the elements as shown in the following table:

Element

Label

Description

NotInspected

Not inspected

This vehicle has not yet been inspected

Waiting

Waiting

This workflow has been submitted, but has not yet been allocated an approver

InProgress

InProgress

This workflow has been allocated to one or more workers to perform the task

Completed

Completed

This workflow has been completed

  1. Create a new Date EDT for ConWHSVehInspDate ...

Get Extending Microsoft Dynamics 365 for Operations Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.