Skip to main content
Lynn Shield (MeetSoci) a posé une question dans #Collaboration
I am using the Docusign SalesForce Admin guide to create buttons to use for Salesforce Quotes (regular not CPQ)

 

I tried using a button on the Opportunity called "Send Quote with Docusign and get the error "A problem with the On CLick JavaScript for this button or link was encountered:  Invalid or unexpected token

 

This is my script from the guide (I've check no extra 'returns')

 

{!REQUIRESCRIPT("/apex/dsfs__DocuSign_JavaScript")} var RQD = DSGetPageIDFromHref(); var

 

SourceID = "{!Opportunity.Id}"; var CRL = "LoadDefaultContacts~0"; var LA = "0"; var RC =

 

""; window.location.href = "/apex/dsfs__DocuSign_

 

CreateEnvelope?DSEID=0&RQD="+RQD+"&SourceID="+SourceID+"&CRL="+CRL+"&LA="+LA+"&RC="+RC;

 

And the screen shot to create the button is:

 

I also tried their guide for a button on the Quote page Layout, and get this error under the Docusign Status Tab "List has no rows for assignment to SObject" using this script:

 

{!REQUIRESCRIPT("/apex/dsfs__DocuSign_JavaScript")} var sourceId = 

 

DSGetPageIDFromHref(); var RQD=DSGetPageIDFromHref(); window.location.href = "/apex/dsfs__DocuSign_CreateEnvelope?DSEID=0 &SourceID="+sourceId+"&RQD="+RQD;

 

Screenshot: 

 

​

 

Has anyone been succesful adding these buttons?  Any glaring errors on my part?

 

Any help would be appreciated.

 

 
5 réponses
  1. 30 mai 2018, 17:32

    Try this = 

    {!REQUIRESCRIPT("/apex/dsfs__DocuSign_JavaScript")}

    var RQD = DSGetPageIDFromHref();

    var SourceID = "{!Opportunity.Id}";

    var CRL = "LoadDefaultContacts~0";

    var LA = "0";

    var RC = "";

    window.location.href = "/apex/dsfs__DocuSign_CreateEnvelope?" +

    "DSEID=0" +

    "&RQD=" + RQD +

    "&SourceID=" + SourceID +

    "&CRL=" + CRL +

    "&LA=" + LA +

    "&RC=" + RC;