web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Workflow button is not visible after submission.

(1) ShareShare
ReportReport
Posted on by 155
Workflow button is not visible after submission,
 
 
but visible on Not submitted.
 
 
I have checked workflow type and other classes. But did not get any solution regarding this issue.
 
I have the same question (0)
  • Jonas "Jones" Melgaard Profile Picture
    5,010 Most Valuable Professional on at
    What document are you trying to submit?
    Is this a standard form or custom form?
  • Suggested answer
    Mallesh Deshapaga Profile Picture
    1,711 on at

    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.

  • Suggested answer
    Waed Ayyad Profile Picture
    9,089 Super User 2026 Season 1 on at
    Hi,
     
    Are you working on Cutom Workflow? Did you check security roles assigned to user? Try to open form using Admin user.
     
     
    Thanks,
    Waed Ayyad
    If this helped, please mark it as "Verified" for others facing the same issue
     
  • Ashraf Hussain Khan Profile Picture
    155 on at
    It's single table and custom workflow and I didn't create any security related to this workflow.
  • Jonas "Jones" Melgaard Profile Picture
    5,010 Most Valuable Professional on at
    If you used the workflow wizard, then I expect it to work.
    I have some additional questions:
     
    Can you send me a screenshot of the configured workflow and a submitted workflow's history?
     
    Can you check that the form has been configured correctly with the right data source
     
  • Ashraf Hussain Khan Profile Picture
    155 on at
  • Jonas "Jones" Melgaard Profile Picture
    5,010 Most Valuable Professional on at
    Okay, thanks.
    My next guess is that it has something to do with the submit manager. I.e. it only updates the WF Status, but never really submits it to workflow. Are you 100% sure you are submitting the safety plan to workflow?
     
    Can you check your submit manager?
    You can find an example implementation here: VendTableChangeProposalWorkflowSubmitManager
  • Suggested answer
    Waed Ayyad Profile Picture
    9,089 Super User 2026 Season 1 on at
    Hi,
     
    Are you having the admin security role?
     
    Thanks,
    Waed Ayyad
    If this helped, please mark it as "Verified" for others facing the same issue
  • Ashraf Hussain Khan Profile Picture
    155 on at
    Yes.


  • Ashraf Hussain Khan Profile Picture
    155 on at
    /// <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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 617

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 461 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 298 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans