Docusign SFDC自定义按钮 - 错误

时间:2017-05-23 23:52:58

标签: docusignapi

我们正在寻找创建自定义按钮,但是在按照示例文档后,我们仍然会在单击按钮时看到。显示的错误消息:“意外的标识符”

这是用于参考的文章。 https://support.docusign.com/en/guides/dfs-admin-guide-sample-js-code-custom-buttons

我会附上我们的自定义代码供您查看。你能帮忙找出问题吗?谢谢!

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

//********* Option Declarations (Do not modify )*********// 
var RC = '';var RSL='';var RSRO='';var RROS='';var CCRM='';var CCTM='';var CCNM='';var CRCL=''; var CRL='';var OCO='';var DST='';var LA='';var CEM='';var CES='';var STB='';var SSB='';var SES='';var SEM='';var SRS='';var SCS ='';var RES=''; 
//*************************************************// 


var CRL="Email~{!Opportunity.Primary_Contact_Email__c};FirstName~{!Opportunity.Primary_Contact_First_Name__c};LastName~{!Opportunity.Primary_Contact_Last_Name__c};Title~{!Opportunity.Primary_Contact_Title__c};Role~Signer1;RoutingOrder~1;Email~jonathan@epigrowth.com;FirstName~Jonathan;LastName~Gav;Title~Consultant;Role~Signer2;RoutingOrder~2"; 


//var CCTM = 'Signer1~Signer;Signer2~Signer';// 

//var CCRM = 'Signer1~Signer1;Signer2~Signer2';// 

var LA = '0'; 

var CES='Sales documents from {!Opportunity.OwnerFullName} are ready to be signed.'; 

var CEM = "Here is the document that requires your signature. Signing electronically is our preferred option. Please click on the View Documents button below and you will be taken to the document, where you will see an option to sign.\\n\\nYou can also sign and fax back by pressing View Documents and select Sign On Paper. Please note that if you choose to fax, please only use the DocuSign provided cover sheet. \\n\\nPlease contact me with any questions.\\n\\nThank You\\n\\n{!Opportunity.OwnerFullName} \\n{!Opportunity.OwnerEmail} \\n{!Opportunity.OwnerPhone}"; 

//********* Page Callout (Do not modify) *********// 
window.location.href ="/apex/dsfs__DocuSign_CreateEnvelope?DSEID=0&SourceID={!Opportunity.Id}&RC="+RC+"&RSL="+RSL+"&RSRO="+RSRO+"&RROS="+RROS+"&CCRM="+CCRM+"&CCTM="+CCTM+"&CRCL="+CRCL+"&CRL="+CRL+"&OCO="+OCO+"&DST="+DST+"&CCNM="+CCNM+"&LA="+LA+"&CEM="+CEM+"&CES="+CES+"&SRS="+SRS+"&STB="+STB+"&SSB="+SSB+"&SES="+SES+"&SEM="+SEM+"&SRS="+SRS+"&SCS="+SCS+"&RES="+RES; 
//*******************************************//

1 个答案:

答案 0 :(得分:1)

你的CRL结尾有一个额外的,