locked
Close Opportunity Dialog, MS CRM 2013 Online RRS feed

  • Question

  • Hi,

    Can we popup Close Opportunity dialog using JavaScript ?

    My requirement is, if a field in opportunity has a specific value, then while saving that opportunity, the system should popup Close opportunity dialog. How can i achieve this? If not possible, is there an alternate way to achieve the functionality of Close Opportunity dialog (I need to capture Actual Revenue, Close Date, Description as well)?


    Thanks and Regards. Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

    Tuesday, April 29, 2014 7:20 AM

All replies

  • Hi

    There are two ways to do your requirement

    1)Call the below url on save of record based on your requirement 


    https://     your organization url    /SFA/opps/dlg_closeopp.aspx?dType=1&pId=%7b   Opportunity record id  %7d&pType=3&won=true

    2)Create your own html similar to out of box close as won page and call that page on save

    Regards,

    Sudhakaar reddy

    Tuesday, April 29, 2014 7:53 AM
  • Hi,

    Thanks for the reply.

    1) I have already tried using URL. Nothing happens on click of OK button in the Close Opportunity dialog. It will just close the dialog/page. Opportunity is not getting Closed as Won. 

    function complete() {
    window.open("https://xyz.crm5.dynamics.com/SFA/opps/dlg_closeopp.aspx?estimatedVal=26000&pId=%7bE036ED1C-2BAF-E311-ADD4-D89D6765A2D0%7d&pType=3&won=true","_blank","toolbar=yes, scrollbars=yes, resizable=yes, top=500, left=500, width=400, height=400");
    }

    2) HTML web recourse could be my last option.


    Thanks and Regards. Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

    Tuesday, April 29, 2014 9:41 AM