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 :
Microsoft Dynamics AX (Archived)

Adding new elements to workflow action button.

(0) ShareShare
ReportReport
Posted on by 15

Hello,

I am working on a requirement (AX 2012 R3 CU12) where I must add a new action “Send e-mail to Vendor” to the workflow-action button on the form below:

Home -> Common -> Work items -> Work items assigned to me:

Form-_2D00_-work-items-assigned-to-me.png

This new action (if selected) will open a form were the user will be able to type in some data and when the “OK” button is clicked, an e-mail is sent, the current record is updated with new status (customized field) and the workflow instance is cancelled.

I've created a workflow-task by using the task-wisard by following the MSDN article: https://msdn.microsoft.com/en-us/library/cc601939.aspx (How to: Create a Workflow Task [AX 2012]).

Still I cannot see the new task when I click the action button.

When I debug the creation of this button, I can see that button-elements are fetched from the WorkflowActionTable in method getElementOutcomes on table WorkflowElementTable.

The task-wizard did not add a record to this table and because of that, my new task is not added to the button-elements.

My questions are:

1.       Is my approach totally wrong. If yes, what is the best way to do this modification? A code example/description of similar modification would be greatly appreciated. 

2.       When or how is the record added to the WorkflowActionTable?

 

Thanks in advance,

Kristinn

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Crispin and Sukrut,

    Thank you for your help. I'll try to change the code in the submit class.

    Regards,

    Kristinn

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 26

#2
imran ul haq Profile Picture

imran ul haq 8

#3
André Arnaud de Calavon Profile Picture

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

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans