Skip to main content



No record found.

Dynamics 365 Community / Forums / Commerce forum / Dynamics 365 for Retai...
Commerce forum

Dynamics 365 for Retail | Error while calling Dialog from Triggers in CPOS

Posted on by 1,147


I am facing an error when I am calling the dialog box from triggers in CPOS. 

"ExtensionTemplatedDialogBase can only run in extension views."

As I understand from error that dialogs can only run in extension views but what in case we have to validate the user with OTP while making the payment. 

Please help in case anyone has information on the same.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics 365 for Retail | Error while calling Dialog from Triggers in CPOS

    Hi Neeraj,

    1. Add infocode on payment to capture information, validate the infocode information in CRT using pretrigger for addtenderline operation. By throwing exception we can stop the workflow.

    2. If More fields/  information need to captured, extend view with dialog to capture information and then call addtenderline api with details.

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 . . .


André Arnaud de Calavon Profile Picture

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

Martin Dráb Profile Picture

Martin Dráb 225,783 Super User

nmaenpaa Profile Picture

nmaenpaa 101,148


Featured topics

Product updates

Dynamics 365 release plans