Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Duplicate Orders being created - disable Create Order button?

(0) ShareShare
ReportReport
Posted on by 1,266

We have an issue with our users being somewhat impatient when clicking "Create Order" on a Quote.  As it can take over 10 seconds between the Create Order dialog window disappearing and the newly created Order appearing, users are clicking Create Order again - resulting in duplicate Orders being created.  My initial thoughts are to create a plugin registered on Create Order to check for duplicates but ideally would prefer to disable or hide the Create Order button to prevent it from being clicked for a second time.  I know I can hide this button using the ribbon workbench but do not know if it is possible to hide it only if the user clicks OK on the Create Order dialog.  If they click cancel the button should remain visible.

Any suggestions on how to overcome this issue would be greatly appreciated.  

*This post is locked for comments

  • Luke Sartain Profile Picture
    Luke Sartain 1,266 on at
    RE: Duplicate Orders being created - disable Create Order button?

    Hi Syed

    Definitely a nice feature that we could use alongside Francesco's second option but we're not yet able to upgrade to 9.0.  

    Luke  

  • Luke Sartain Profile Picture
    Luke Sartain 1,266 on at
    RE: Duplicate Orders being created - disable Create Order button?

    Hi Francesco

    Thanks for your response it was very helpful.  Definitely agree dealing with standard buttons and actions is painful so will write a quick plugin to do the job.  

    Thanks once again!

    Luke

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Duplicate Orders being created - disable Create Order button?

    Hi Luke,

    you could:

    1) add an action to create order click action by Ribbon Workbench or

    2) substitute the create order button, replicating the rules of create order incapsulting the final action in a method which hide the button before execute it

    3) add a plugin step on order pre-create message to skip the creation of duplicated order

    Personally i prefere plugin because give you more control, ribbon workbench could be painful when you deal with standard buttons/actions.

    Please let us know.

    If you found the answer helpful, please mark as Verified 

    Join my network on LinkedIn      Follow me on Twitter 

    Thank You & Best Regards

    Francesco Picchi

    Microsoft Dynamics CRM Consultant, Bologna, ITALY

    Independent Contractor

    http://www.francescopicchi.com

  • Suggested answer
    Syed Ibrahim Profile Picture
    Syed Ibrahim 6,257 on at
    RE: Duplicate Orders being created - disable Create Order button?

    There is cool feature to make user to wait upon some time take operation in the background by showing custom message on progress bar.

    Call the below js upon the event triggered.

    function ShowCustomMsg() { Xrm.Utility.showProgressIndicator("Loading contact email.."); setTimeout(delayedLoadPrimaryContact, 10000); }

    For more detail. Pls refer below link.

    community.dynamics.com/.../dynamics-365-v9-progress-indicator-api

    Hope this will solve your problem.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,111 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,934 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans