Friday, October 31, 2025

WorkFlow Auto sumbit code in X++

 auto sumbitted of workflow code in X++

Workflow::activateFromWorkflowType(workFlowTypeStr("BudgetRegisterEntryReview"),newBudgetTransactionHeader.RecId,"submitted",NoYes::Yes,curUserId());

                        ttsbegin;

                        newBudgetTransactionHeader.selectForUpdate(true);

                        newBudgetTransactionHeader.WorkflowStatus              = BudgetTransactionWorkflowStatus::Submitted;

                        newBudgetTransactionHeader.doUpdate();

                        ttscommit;

No comments:

Post a Comment

Installing a New Package in D365 F&O Development Environment

  Introduction Installing and updating packages in the development environment is a common activity in Microsoft Dynamics 365 Finance . To ...