*This post is locked for comments
*This post is locked for comments
Hi Bhavika,
You can't merge URL with parameters then call with window.open() function because the controller requires some commands which have to run in the back.
You can find the command collection in the button's elements like account|NoRelationship|Form|Mscrm.RunWorkflowPrimary but also dealing with these Xrm.Core libraries are not supported.
You can use Xrm.Utility.lookupObjects to open lookup views from your web resource.
Here is a similar example with yours.
https://www.inogic.com/blog/2018/06/show-lookup-dialog-in-dynamics-365-v9-0/
Hope it can give you a clue.
Cheers, Seren.
Thank you for the response. I want to add button on HTML Page and show the list of On Demand workflows for the related entity. On click of selected workflow from the list, want to run that workflow for all selected records. Please advise me on it.
Hi Bhavika,
There's a supported way by using the Ribbon Work Bench to add a button that can start a workflow:
ribbonworkbench.uservoice.com/.../132235-create-a-workflow-short-cut-ribbon-button-no-code
www.cloudfronts.com/call-workflow-directly-from-a-button-using-ribbon-workbench
André Arnaud de Cal...
292,863
Super User 2025 Season 1
Martin Dráb
231,723
Most Valuable Professional
nmaenpaa
101,156
Moderator