[Event Request] CU 1521 - OnExecuteWorkflowResponse change
The OnExecuteWorkflowResponse has a "Variant" parameter, but it is not a VAR; we need it to be a VAR. Not only does this match the calling function ExecuteResponse, it also allows finer control during workflows.
Context: We are implementing a solution where the user can specify Convert Quote To Order during the Purchase Quote Workflow.
As part of this process, the Quote Approval Entries are transferred to the Order Approval Entries. At this point we need to change the Workflow Step Instance to refer to the new Approval Entries, instead of the old deleted Approval Entries. If the next step is a Send Notification, it will send one for the Order rather than the Quote.
Unfortunately we are having to use a SingleInstance codeunit to achieve this. It makes more sense that we can set the Variant parameter to a different Approval Entry to send it back up to the Workflow Step Instances.