[英]DocuSign for Salesforce.com
I have 2 users. 我有2位使用者。 I need to send the envelope to User 1 to sign. 我需要将信封发送给用户1进行签名。 Once user 1 has signed the document, User 2 needs to get the envelope to sign the document. 用户1签署文档后,用户2需要获取信封以签署文档。
I have written a Custom button on a Custom object where I am passing the envelop ID and Passing the users to whom the envelope will be sent along with the routingOrder, but the envelope is received by both the users. 我在自定义对象上编写了一个“自定义”按钮,我在其中传递信封ID并将将信封和routingOrder一起发送到的用户传递给用户,但是两个用户都收到了信封。 I was not able to find a proper document that could help me resolve the issue. 我找不到合适的文档来帮助我解决问题。 Piece of javascript: 一段JavaScript:
{!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='';
//*************************************************//
//DocuSign Template
var DST='';
//Adding Notes & Attachments
var LA='1';
//Custom Recipient List
var CRL='Email~test_1@gmail.com;FirstName~user;LastName~1;Role~Signer 1;RoutingOrder~1,Email~test_2@gmail.com;LastName~user2;Role~Signer 2;RoutingOrder~2,LoadDefaultContacts~1';
//Custom Contact Role Map
var CCRM='Signer 1~Signer 1;Signer 2~Signer 2';
//Custom Contact Type Map
var CCTM='Signer 1~Signer 1;Signer 2~Signer 2';
//Custom Email Subject
var CES='{!CustomObject__c.Id} - Please eSign Vocus Sales Agreement';
//Custom Email Message
var CEM='I am sending you this request for your electronic signature, please review and electronically sign by following the link below.';
//Custom Envelop from Docusign
var DST = '00000000-33F0-4A8C-A8B2-00000000000';
//********* Page Callout (Do not modify) *********//
window.location.href ="/apex/dsfs__DocuSign_CreateEnvelope?DSEID=0&SourceID={!CustomObject__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;
//*******************************************//
Please do let me know what I am missing out. 请让我知道我错过了什么。
Thanks in advance for helping out. 在此先感谢您的帮助。
Most likely an issue with how you're setting CCRM and CCTM . 最有可能与您如何设置CCRM和CCTM有关的问题 。 Try changing to this instead (replace ALL_CAPS_TEXT with appropriate Role Names from the DocuSign Template you're using): 尝试改为使用此方法(用正在使用的DocuSign模板中的适当角色名称替换ALL_CAPS_TEXT):
//Custom Contact Role Map
var CCRM='Signer 1~ROLE_NAME_OF_FIRST_RECIPIENT_IN_DOCUSIGN_TEMPLATE;Signer 2~ROLE_NAME_OF_SECOND_RECIPIENT_IN_DOCUSIGN_TEMPLATE';
//Custom Contact Type Map
var CCTM='Signer 1~Signer;Signer 2~Signer';
Notice that in setting the value of CCTM , the second value in each entry should simply be " Signer " (as shown above). 请注意,在设置CCTM的值时,每个条目中的第二个值应该只是“ Signer ”(如上所示)。
Also, since you're using a DocuSign Template (DST), you should verify that the Recipient Routing Order is set appropriately there as well. 另外,由于您使用的是DocuSign模板(DST),因此您还应验证在此处是否也正确设置了“收件人路由顺序”。
Here's a (working) example for a custom button that sends to the first recipient first, and then when that recipient completes the envelope, sends to the second recipient: 这是一个自定义按钮的(有效的)示例,该按钮首先发送给第一个收件人,然后当该收件人完成信封后,发送给第二个收件人:
Recipient Role Names & Routing Order as Defined by the DocuSign Template that the custom button uses: 自定义按钮使用的DocuSign模板定义的收件人角色名称和路由顺序:
Custom button code: 自定义按钮代码:
{!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='';
//*************************************************//
//DocuSign Template
var DST='';
//Adding Notes & Attachments
var LA='1';
//Custom Recipient List
var CRL='Email~johnsemail@outlook.com;FirstName~user;LastName~1;Role~Signer 1;RoutingOrder~1,Email~janesemail@outlook.com;LastName~user2;Role~Signer 2;RoutingOrder~2,LoadDefaultContacts~1';
//Custom Contact Role Map
var CCRM='Signer 1~Customer;Signer 2~SalesRep';
//Custom Contact Type Map
var CCTM='Signer 1~Signer;Signer 2~Signer';
//Custom Email Subject
var CES='Please eSign Vocus Sales Agreement';
//Custom Email Message
var CEM='I am sending you this request for your electronic signature, please review and electronically sign by following the link below.';
//Custom Envelop from Docusign
var DST = '7C350ABB-74F9-463E-96E3-49153AA25607';
//********* 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;
//*******************************************//
This is the exact same button code that you provided in your question -- with only minor changes: 这与您在问题中提供的按钮代码完全相同-只是做了一些小改动:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.