2017-05-23 35 views
0

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

这是用作参考的文章。 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 protected];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

你有一个额外,你CRL结束

+0

感谢您的快速回复。我做了适当的更新,并发现了其他一些错别字。现在得到这个错误“缺少;之前的声明” – Jonathan

+0

CES是缺少'';'''在字符串 – Andrew

+0

谢谢安德鲁。我更新了,现在我得到了“意想不到的标识符”。思考? – Jonathan