Announcements
No record found.
Regarding the workflow issue, it's possible that the situation arises from how the workflows are set up. For example, if you have a Purchase Order header workflow and a line-level workflow, but the line-level workflow is not properly connected to the header workflow, the workflow button may not display because the workflow is not active.
If you can share more details about the specific workflows involved, such as the setup of the header and line-level workflows, I'd be happy to double-check the configuration and help troubleshoot the issue further.
Please feel free to provide additional information so I can assist you effectively.
/// <summary> /// The DSHSSafetyPlansWfTypeSubmitManager menu item action event handler. /// </summary> public class DSHSSafetyPlansWfTypeSubmitManager { public static void main(Args _args) { DSHSSafetyPlans safetyPlans; DSHSSafetyPlansWfTypeSubmitManager submitManger = new DSHSSafetyPlansWfTypeSubmitManager(); recId _recId = _args.record().RecId; WorkflowCorrelationId _workflowCorrelationId; workflowTypeName _workflowTypeName = workFlowTypeStr('DSHSSafetyPlansWfType'); WorkflowComment note = ''; WorkflowSubmitDialog workflowSubmitDialog; //Opens the submit to workflow dialog. workflowSubmitDialog = WorkflowSubmitDialog::construct(_args.caller().getActiveWorkflowConfiguration()); workflowSubmitDialog.run(); if (workflowSubmitDialog.parmIsClosedOK()) { safetyPlans = _args.record(); // Get comments from the submit to workflow dialog. note = workflowSubmitDialog.parmWorkflowComment(); try { ttsbegin; // Activate the workflow. _workflowCorrelationId = Workflow::activateFromWorkflowType(_workflowTypeName, safetyPlans.RecId, note, NoYes::No); safetyPlans.WFStatus = DSHSWfStatus::Submitted; safetyPlans.update(); ttscommit; // Send an Infolog message. info('Submitted to workflow.'); } catch (Exception::Error) { error('Error on workflow activation.'); } } _args.caller().updateWorkFlowControls(); } }
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.
Martin Dráb 555 Most Valuable Professional
André Arnaud de Cal... 484 Super User 2026 Season 2
CU10121822-0 378