
Hello Experts,
I need to add a costum button "Deactivate" and on that , when someone click that opportunity should be closed as lost with status Deactivated.
Please suggest how to achieve this by javascript.
Thanks in Advance,
NODAL
*This post is locked for comments
I have the same question (0)There is a sample script here:
community.dynamics.com/.../how-to-close-opportunity-as-won-using-webapi
Although, instead of WinOpportunity you'll need to use LoseOpportunity:
msdn.microsoft.com/.../mt607618.aspx
(/api/data/v8.2/LoseOpportunity)