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
I have the same question (0)

Report
All responses (
Answers (