Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

How to execute a piece of code when any field on the form/table is modified.

Posted on by 216
Hi,
 
I have Projtable form wherein I have Finance Approval field. My requirement is that whenever any field on the form is modified, the finance approval status field should be set to draft. I need to do this because I want to reactivate the workflow when any field is modified but for workflow to be activated, the finance approval status must be draft.
 
Please help me achieve the above requirement. I know we need to use Event Handlers or Chain of commands to achieve it. Please guide further on how to do it.
Thanks.
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,280 Super User 2024 Season 2 on at
    How to execute a piece of code when any field on the form/table is modified.
    Hi Dynamics365 Admin,
     
    Is this a continuation of your previous question? How to activate change management in a custom workflow (dynamics.com)
    As I mentioned, you can check how change workflows are implemented customer and vendor master. The changed values will be stored in a staging table until the workflow will be approved. You can reverse engineer how Microsoft implemented it to get an example.
     

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans