DocuSign for Salesforce.com [英] DocuSign for Salesforce.com

查看:74
本文介绍了DocuSign for Salesforce.com的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有2个用户。我需要将信封发送给用户1进行签名。用户1签署文档后,用户2需要获得信封以签署文档。

I have 2 users. I need to send the envelope to User 1 to sign. Once user 1 has signed the document, User 2 needs to get the envelope to sign the document.

我在自定义对象上编写了一个自定义按钮,我在其中传递信封ID,并将信封和routingOrder一起发送给用户,但是两个用户都收到信封。我找不到合适的文档来帮助我解决问题。一段javascript:

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. I was not able to find a proper document that could help me resolve the issue. Piece of 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.

提前感谢您的帮助。

推荐答案

最有可能您如何设置 CCRM CCTM 的问题。尝试改成此方法(用正在使用的DocuSign模板中的适当角色名称替换ALL_CAPS_TEXT):

Most likely an issue with how you're setting CCRM and CCTM. Try changing to this instead (replace ALL_CAPS_TEXT with appropriate Role Names from the DocuSign Template you're using):

//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';

请注意,在设置 CCTM 的值时,每个条目应该只是 签名者(如上所示)。

Notice that in setting the value of CCTM, the second value in each entry should simply be "Signer" (as shown above).

此外,由于您使用的是DocuSign模板(DST),因此您还应验证在此处是否也正确设置了收件人路由顺序。

Also, since you're using a DocuSign Template (DST), you should verify that the Recipient Routing Order is set appropriately there as well.

下面是一个自定义按钮的示例,该按钮首先发送给第一个收件人,然后当该收件人完成信封后,发送给第二个收件人:

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:

收件人角色名称&自定义按钮使用的DocuSign模板定义的路由顺序:

自定义按钮代码:

{!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:


  • 更改了 CRL 中的电子邮件地址(这样我就可以测试接收到的电子邮件了)。

  • 更改了 CCRM 以从DocuSign模板中为每个签名者指定相应的收件人角色名称。

  • 更改了 CCTM 以仅使用

  • DST 更改为DocuSign帐户中模板的ID(以便进行测试)。
  • li>
  • 已更新 window.location.href ,以将Opportunity.Id用作 SourceID (以便我进行测试)。

  • Changed email addresses in CRL (so I could test receiving the emails).
  • Changed CCRM to specify corrsponding Recipient Role Name from DocuSign Template for each signer.
  • Changed CCTM to use just "Signer" as the second portion for each item.
  • Changed DST to the ID of a Template in my DocuSign account (so I could test).
  • Updated window.location.href to use Opportunity.Id as SourceID (so I could test).

这篇关于DocuSign for Salesforce.com的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆