Hi all,
I have created a custom button on a view using ribbon workbench. The button displays a custom web resource and takes user input before updating a field.
Once this is complete, I would like to open the standard Opportunity close as won dialogue box. I can achieve this using the below code whilst I am in the Opportunity form.
Mscrm.OpportunityCommandActions.opportunityClose(1);
This won't work from a view though... I've tried copying the method from the existing button and passing the same parameters but nothing happens. Has anyone else done this before?
function showAlert(crmParam, itemRef , boolParam , selControl) { Mscrm.OpportunityGridCommandActions.opportunityClose(itemRef , boolParam , selControl); }
My button:
Thanks in advance
*This post is locked for comments
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156