Announcements
// submit to workflow ttsbegin; CustTable::updateWorkflowState(proposal.custTable, CustTableChangeProposalWorkflowState::Submitted); // Activate the workflow. Workflow::activateFromWorkflowType(workFlowTypeStr(CustTableChangeProposalWorkflow), proposal.custTable, "@AccountsReceivable:CustChangeProposalSubmit_SubmittedMessage", NoYes::No); ttscommit;
Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future
WorkflowVersionTable workflowVersion; workflowVersion = Workflow::findWorkflowConfigToActivateForType(userRequest.workflowType(), userRequest.RecId, tableNum(UserRequest)); if (workflowVersion.Enabled) { Workflow::activateFromWorkflowConfigurationId( workflowVersion.ConfigurationId, userRequest.RecId, workflowComment, NoYes::No); } else { if (!workflowVersion || !workflowVersion.workflowTable()) { workflowDisplayName = userRequest.workflowType(); } else { workflowDisplayName = workflowVersion.workflowTable().Name; } throw error(strFmt("@GLS130222", workflowDisplayName)); }
ttsbegin; WorkflowVersionTable workflowVersionTable; workflowVersionTable = Workflow::findWorkflowConfigToActivateForType(workFlowTypeStr(PSAProjQuotationTemplate), salesQuotationTable.RecId, tableNum(SalesQuotationTable)); if (workflowVersionTable.Enabled) { PSAProjQuotationSubmitSend submitToWorkflow = new PSAProjQuotationSubmitSend(); submitToWorkflow.parmWorkflowVersionTable(workflowVersionTable); submitToWorkflow.parmWorkflowComment("Add your comment here"); PSAProjQuotationSubmitSend::submitToWorkflow(submitToWorkflow.parmWorkflowVersionTable().ConfigurationId, salesQuotationTable.RecId, submitToWorkflow.parmWorkflowComment()); } ttscommit;
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 382 Super User 2026 Season 1
Martin Dráb 265 Most Valuable Professional
Subra 262