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:
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)

Report
All responses (
Answers (