Hi,
Is there a way of "running" a dialog through C# code?
My use case is that i want a plugin to be triggered when a user creates a record and then start a dialog from that plugin when it is exiting so that the dialog is shown on the UI to confirm something from the user.
I found this link from the documentation https://msdn.microsoft.com/en-us/library/gg334435.aspx , but it just does a CRUD operation on dialogs. I want to "show" the dialog on the UI also.
P.S. I don't want/can't use Xrm library dialogs because of some limitations.
Thanks!
Edit : Everyone, thanks for your suggestions! From the comments, it's clear that this cannot be done through server side code, but just client side code.
*This post is locked for comments
Hi Aseem,
You may call an global action in client side script by passing your parameter and then from action you can invoke your custom workflow with c# code.
I am just giving you one alternate suggestion.
Hope this helps.
If you call an action (different type of process), you can have Output parameters. Based on the Output parameter you can call a dialog if necessary. The call to the dialog will still be via Client side code.
I think what you are probably looking for is the combination of Client and Server side code?
How can this be done?
From what i have seen, if we throw some error from plugins, an error dialog is thrown by dynamics. Now, how can i bind my dialog to be triggered from dynamics generic error dialog?
Hi Aseem,
i dont think you can do that. what you can do is once plugin is done - you put an alert/exception for the user to may click on a button which will then open the dialog.
Yes they are.
A Dialog is basically a type of synchronous process (or workflow).
Are "Dialogs" and "Dialog Processes" the same?
I guess they are. If yes, you may be right that "the answer is no" because i didn't find anything online to run the dialogs through server side code.
Not sure I follow completely what you are trying to do.
A plugin runs on the server side. Dialogs are executed on the client side.
You can show dialogs in the UI by calling them from script or clicking on the Run Dialog button.
The link that you specified is the creation of Dialog Processes, but nothing to do with actual execution of dialogs.
Sorry, but I think the answer is no.
Hope this helps.
Mohamed Amine Mahmoudi
83
Super User 2025 Season 1
Community Member
52
Victor Onyebuchi
6