Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Sales forum / Call CreateOrder dialo...
Sales forum
Answered

Call CreateOrder dialog from custom button

Posted on by 1,266

Hi all

We have a business requirement for some confirmation checkboxes to be completed before an order can be created from an active quite.  I have made a copy of the Create Order button and have this call a custom HTML dialog featuring the four checkboxes.  Once these checks have been completed I'd like to then call the out of the box create order dialog.  Any idea how I can do this using JavaScript?  I'm looking for something like:

Mscrm.RibbonCommands.acceptQuoteOrCreateOrder();

Ideally I'd like to avoid having to create my own custom dialog when the out the box one is perfectly fine.

Cheers.

Luke

  • Verified answer
    Luke Sartain Profile Picture
    Luke Sartain 1,266 on at
    RE: Call CreateOrder dialog from custom button

    Shortly after posting found the answer myself.  Can be done by calling following command:

    Sales.QuoteRibbonActions.Instance.acceptQuoteOrCreateOrder();

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,459 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,783 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans