Salesforce使用Docusign按钮发送

时间:2016-04-04 14:44:57

标签: salesforce docusignapi

我有一个自定义按钮,可以在90%的时间内工作。当它不起作用时,我收到此错误消息,“无法显示此信封,因为用户访问不足或信封不存在。”我不确定按钮的问题是什么。我在我的字段之前尝试过使用JSENCODE,我认为它可能是导致错误的地址或名称中的字符,但它仍然无效。以下是我的代码:

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

//********* Option Declarations *********// 
var 
RC = '', 
RSL = '', 
RSRO = '', 
RROS = '', 
CCRM = '', 
CCTM = '', 
CCNM = '', 
CRCL = '', 
CRL = 'Email~e_vazquez10@yahoo.com;LastName~{!Properties__c.Acquisitions_Analyst_Name__c};Role~Signer 1;RoutingOrder~1', 
OCO = 'Tag', 
DST = '', 
LA = '', 
CEM = 'Hello,\\n\\n Attached is the purchase contract to sign.',
CES = 'Offer for {!Properties__c.Full_Property_Address__c}', 
STB = '0', 
SSB = '1', 
SES = '1', 
SEM = '1', 
SRS = '0', 
SCS = '0', 
RES = '0,1,3,1,7,1'; 

//********* Page Callout (Do not modify) *********// 
window.location.href = 
"/apex/dsfs__DocuSign_CreateEnvelope?DSEID=0&SourceID={!Properties_Document__c.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;
//*******************************************//

0 个答案:

没有答案