Showing posts with label Work Flow auto submit. Show all posts
Showing posts with label Work Flow auto submit. Show all posts

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;

Purchase Orders

 Before confirming a Purchase Order, the system should display a confirmation popup if the purchase order is associated with an active inter...