【发布时间】:2019-08-30 16:17:58
【问题描述】:
每当创建新记录并将信封 ID 存储在父记录上时,我们都会使用 DocuSign Apex 工具包生成并拥有一个 DocuSign 信封。我们有一个闪电组件,我们希望在其上将 Envelope 显示为 iframe。我们正在使用 DocuSign“getSigningUrl”和“getEmbeddedSigningUrl”方法。前一个返回“null”,后一个返回错误,因为“您确定的收件人不是指定信封的有效收件人。”。请提出建议。
使用嵌入式方法
Url retUrl = new Url('[sfdc base url]');
String envelopeID = 'B33EBEFD-A64F-4D86-9034-6700AFB22EEE';
dfsle.UUID uid = dfsle.UUID.parse(envelopeID);
Url u = dfsle.SigningService.getEmbeddedSigningUrl(uid,retUrl);
System.debug('u---->'+u);
使用签名 url 方法
String envelopeID = 'a271h000000L55d';
dfsle.Envelope e = dfsle.EnvelopeService.getEnvelope(envelopeID);
System.debug('e---->'+e);
Url retUrl = new Url('[sfdc base url]');
Url u = dfsle.SigningService.getSigningUrl(e,retUrl,true );
System.debug('u---->'+u);
【问题讨论】:
标签: docusignapi