具有Docusign的Integration Salesforce无效类型:dfsle.Envelope

具有Docusign的Integration Salesforce无效类型:dfsle.Envelope,salesforce,docusignapi,Salesforce,Docusignapi,我正在尝试将Salesforce与DocuSign和DocuSign Apex Toolkit集成,但我的组织中没有dfsle类。我安装了Apex工具包() 几周前有同样的问题:)转到Salesforce设置。在“快速查找”框中键入已安装的软件包。确保安装了DocuSign应用程序启动器。检查包裹前缀。你能进入apex类并检查信封类是否在那里吗?如果不是,安装过程可能有问题。嗨,这个类是隐藏的。我遵循文档。DocuSign应用程序启动器是否与Salesforce的DocuSign设计相同?我想是

我正在尝试将Salesforce与DocuSign和DocuSign Apex Toolkit集成,但我的组织中没有dfsle类。我安装了Apex工具包()


几周前有同样的问题:)转到Salesforce设置。在“快速查找”框中键入已安装的软件包。确保安装了DocuSign应用程序启动器。检查包裹前缀。

你能进入apex类并检查信封类是否在那里吗?如果不是,安装过程可能有问题。嗨,这个类是隐藏的。我遵循文档。DocuSign应用程序启动器是否与Salesforce的DocuSign设计相同?我想是的。但有了Apex工具箱,谢谢你,阿穆尔纳比斯
Id MySourceId = '00Q0m00000884XXXXX';

dfsle.Envelope myEnvelope = dfsle.EnvelopeService.getEmptyEnvelope(new dfsle.Entity(mySourceId));

Lead myContact = [SELECT Id, Name, Email FROM lead where id = '00Q0m00000884XXXX'];

//use the Recipient.fromSource method to create the Recipient
dfsle.Recipient myRecipient = dfsle.Recipient.fromSource(
            myContact.Name, // Recipient name
            myContact.Email, // Recipient email
            null, //Optional phone number
            'Signer 1', //Role Name. Specify the exact role name from template
            new dfsle.Entity(myContact.Id)); //source object for the Recipient


dfsle.UUID myTemplateId = dfsle.UUID.parse('28386dbc-2576-4637-bb77-c86938fe080f');

//create a new document for the Envelope
dfsle.Document myDocument = dfsle.Document.fromTemplate(
    myTemplateId, // templateId in dfsle.UUID format
    'Self Sales Teste'); // name of the template

// Send the envelope.
myEnvelope = dfsle.EnvelopeService.sendEnvelope(
    myEnvelope, // The envelope to send
    true); // Send now?


try {
    dfsle.EnvelopeService.sendEnvelope(envelope, true);
} catch (dfsle.APIException ex) {
    if (ex.error.code == dfsle.APIErrorCode.CONSENT_REQUIRED) {
        // user is a valid member of the DocuSign account, but has not granted consent to this application 
    } else {
        // handle other errors
    }
}
Error: Line: 3, Column: 1
Error: Invalid type: dfsle.Envelope