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)

Workflow Event Handler

(0) ShareShare
ReportReport
Posted on by 2,013

Hi all,

Actually what is the difference between class xxxEventHandler created during creation Workflow Type and xxxEventHandler created during creation Workflow Approval ?

xxxEventHandler created during creation of Workflow Type usually has method:

-started

-completed

-canceled

xxxEventHandler created during creation of Workflow Approval usually has method:

-canceled

-changeRequest

-completed

-created

-denied

-returned

-started

My confusion are, Workflow Type event : Started / Completed / Canceled it's look the same as Workflow Approval event : Started / Completed / Denied, is it not ?

So if I already put some routine in let's say Workflow Type event : Started / Completed / Canceled, I don't need to put in Workflow Approval event, right ?

Kindly advice,

Thanks,

Toni.

Thanks in advance,

Toni

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mea_ Profile Picture
    60,286 on at

    Hi Toni,

    You probably want to read this msdn article: https://msdn.microsoft.com/en-us/library/cc588240.aspx it has a description of both classes and some examples as well.

  • Anton Tjiptadi Profile Picture
    2,013 on at

    Hi Ievgen,

    Thanks for your kind information.

    So basically, if I understand correctly from it, especially from section whereby they talked about Element Level Event Handler and it is said we can use it for transition of the workflow document, so I only need to maintain in Workflow Approval event : Started / Completed / Denied only.

    Workflow Approval event : Started / Completed / Denied is Element Level Event Handler whereas

    Workflow Type event : Started / Completed / Canceled is Workflow Level Event Handler.

    Can I say like that?

    Thanks again.

    Toni

  • Verified answer
    Mea_ Profile Picture
    60,286 on at

    Yep, that's correct.

  • Verified answer
    Asim Saeed Profile Picture
    575 on at

    Yes its correct, You need to understand this, at times Workflow type contains two child elements

    1)  Task element 2) Approval element  because at times document needs to be send for review before it is approved. The simple example you can see is HcmPositionAction workflow objects.

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

#1
Joris dG Profile Picture

Joris dG 5

#2
Sagar Suman Profile Picture

Sagar Suman 2 Super User 2026 Season 1

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans