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 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 617
André Arnaud de Cal... 461 Super User 2026 Season 1
Syed Haris Shah 298 Super User 2026 Season 1