Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Dynamics 365 Sales OnPost event executed twice

(1) ShareShare
ReportReport
Posted on by 6

I encountered an issue while testing a code that opens a related entity's form in a new tab upon saving under specific conditions in Dynamics. The issue is that the postsave event is executed twice on a specific terminal, causing two forms to open.

This behavior occurs frequently when transitioning stages in the business process flow and happens on the development terminal using Edge. The exact conditions for this issue are unclear as it does not always occur with the same operations.

I have tried restarting the PC and clearing the cache and history, but neither resolved the issue. This problem does not occur on other terminals and does not happen in Chrome.

While monitoring with the developer tools, I noticed that the onsave event is executed only once, but the onpostsave event is executed twice. Could there be a script left somewhere in Edge?

If anyone has any insights or suggestions, I would greatly appreciate your help.

Categories:
  • Suggested answer
    Amit Katariya007 Profile Picture
    Amit Katariya007 8,699 Super User 2024 Season 1 on at
    Dynamics 365 Sales OnPost event executed twice
    If possible could you test on edge incognito?

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans