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

How to run Runnable class in Sandbox enviornment.

I created a runnable class, and it is working fine in the development environment. After that, I moved the class to the Tier-2 environment. ...