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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

How to Enable workflow on Both SalesTableListPage and SalesTable form

(2) ShareShare
ReportReport
Posted on by 1,254

Hi All,

we have enabled custom workflow for sales order form, on salesTableListPage form workflow is working fine and this same process is not working on salesTable form. 

how can we enable workflow button on sales Table (form)?

Workflow type, data source and enable-Workflow properties on form design details configured on both forms.

Please help to fix this.

I have the same question (0)
  • WillWU Profile Picture
    22,363 on at

    Hi Kanagaraj,

    Please provide more information, did event logs show any error?

    And have a look at the blog to verify your customizations, make sure that you didn't miss any steps.

    community.dynamics.com/.../create-custom-workflow-in-d365-dynamics-365

    Don't forget to specify the workflow type

    Any progress please let us know.

  • Kanagaraj A Profile Picture
    1,254 on at

    Hi Will WU,

    Thanks, I have created a workflow with all steps as per the link you shared and didn't get error from salesTable workflow.

    I am not getting workflow button on salesTable form like salesTableListPage form.

    Updated workflow type correctly mapped on salesTable form.

  • Blue Wang Profile Picture
    on at

    Hi Raj A,

    Can you share the screenshots of your settings in the saletableListPage and salesTable forms?

    Is there a workflow template configured and use the workflow configuration set up form in the module specified in the workflow category?

  • D365FnOConsultant Profile Picture
    on at

    Check if you had set the Workflow property "Workflow Enabled" to Yes

    pastedimage1594757563351v1.png

  • Kanagaraj A Profile Picture
    1,254 on at

    Hi Rohit/Blue Wang,

    Thanks for your input, I have enabled above properties for another one workflow and its worked fine.

    But the same property and code(FORM LEVEL: created CoC for 'canSubmitToWorkflow' method on both ListPageForm-SalesTableListPage and detailsFomr -salesTable) was not working for sales table.

  • Amol@ Profile Picture
    282 on at

    Kanagaraj A ,

    I have same issue, Have you find solution for this?

    Please suggest..

    Regards,

    Amol

  • Amol@ Profile Picture
    282 on at

    Hello,

    Issue has been resolved by adding  canSubmitToWorkflow method for SalesTable as well.

    Regards,

    Amol

  • NoobGamer Profile Picture
    2 on at

    Hi Kanagaraj,

    I have created a custom workflow for salesTableList page , Can you please explain what have you done the existing workflow for SalesTable form . SalesTable form already has cansubmittoworkflow method for the standard workflow . What if the both custom workflow and standard workflow enabled at a same time ? whether there will be any conflict ?Can you please share the details regarding this custom workflow

  • Community member Profile Picture
    4 on at
    Hi,
     
    There is a line of code you can find in the Form level canSubmitToWorkflow, which prevents  the  workflow button appearing on the SalesTable or SalesTableListPage form. To resolve this, You can take the COC for the method and pass the parameter to true in the below line of code. 
     
     
    Solution:
     
     public boolean canSubmitToWorkflow(str _workflowType)
     {
         boolean ret = next canSubmitToWorkflow(_workflowType);
         if (SalesTable.DAXWorkflowStatus == DAXWorkflowStatus::NotSubmitted)
         {
             ret = true;
         }
         this.design().controlName("WorkflowActionBarButtonGroup").visible(ret);
         return ret;
     }
     
    Thanks,
    Thiru. G

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 449 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 422 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans