首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在SFDC中接收事件通知

无法在SFDC中接收事件通知
EN

Stack Overflow用户
提问于 2019-06-19 22:08:25
回答 1查看 24关注 0票数 0

我正在从Postman向docusign发送REST请求,但我无法将eventNotification返回到我给出的url。请帮助我在请求中做错了什么。

代码语言:javascript
复制
{
"accountId": "8555983",
"emailSubject": "This request is sent from a Template",
"templateId": "4ce7f605-c2c8-40ab-b95b-7aaa0c765245",
"templateRoles": [{
    "roleName": "Signer1",
    "name": "Prakhar",
    "email": "prakhar@example.com",
    "eventNotification": {

        "url": "[sfdc base url]/services/apexrest/Docusign",
        "loggingEnabled": "true",
        "requireAcknowledgment": "true",
        "useSoapInterface": "false",
        "includeCertificateWithSoap": "false",
        "signMessageWithX509Cert": "false",
        "includeDocuments": "true",
        "includeEnvelopeVoidReason": "true",
        "includeTimeZone": "true",
        "includeSenderAccountAsCustomField": "true",
        "includeDocumentFields": "true",
        "includeCertificateOfCompletion": "true",
        "envelopeEvents": [
          {
            "envelopeEventStatusCode": "sent"
          },
          {
            "envelopeEventStatusCode": "delivered"
          },
          {
            "envelopeEventStatusCode": "completed"
          },
          {
            "envelopeEventStatusCode": "declined"
          },
          {
            "envelopeEventStatusCode": "voided"
          }
        ]
    },

    "tabs": {
    "signHereTabs": [{
                "xPosition": "138",
                "yPosition": "654",
                "documentId": "1",
                "pageNumber": "1"
           }],
        "textTabs": [{
            "tabLabel": "NameOfInstitution",
            "value":"Example",
            "locked": "true",
            "xPosition": "245",
            "yPosition": "310",
            "documentId": "1",
            "pageNumber": "1"
        }



        ]
    }
}],
"status": "sent"

}

EN

回答 1

Stack Overflow用户

发布于 2019-06-20 04:22:02

eventNotification属性必须位于请求对象的基级。

您将它放在一个templateRoles对象中。

尝试以下操作:

代码语言:javascript
复制
{
   "accountId": "8555983",
   "emailSubject": "This request is sent from a Template",
   "templateId": "4ce7f605-c2c8-40ab-b95b-7aaa0c765245",
   "templateRoles": [{
       "roleName": "Signer1",
       "name": "Prakhar",
       "email": "prakhar@example.com",      
       "tabs": {
          "signHereTabs": [{
                "xPosition": "138",
                "yPosition": "654",
                "documentId": "1",
                "pageNumber": "1"
          }],
          "textTabs": [{
            "tabLabel": "NameOfInstitution",
            "value":"Example",
            "locked": "true",
            "xPosition": "245",
            "yPosition": "310",
            "documentId": "1",
            "pageNumber": "1"
          }]
       }
   }],
   "status": "sent",
   "eventNotification": {       
        "url": "[sfdc base url]/services/apexrest/Docusign",
        "loggingEnabled": "true",
        "requireAcknowledgment": "true",
        "useSoapInterface": "false",
        "includeCertificateWithSoap": "false",
        "signMessageWithX509Cert": "false",
        "includeDocuments": "true",
        "includeEnvelopeVoidReason": "true",
        "includeTimeZone": "true",
        "includeSenderAccountAsCustomField": "true",
        "includeDocumentFields": "true",
        "includeCertificateOfCompletion": "true",
        "envelopeEvents": [
          {
            "envelopeEventStatusCode": "sent"
          },
          {
            "envelopeEventStatusCode": "delivered"
          },
          {
            "envelopeEventStatusCode": "completed"
          },
          {
            "envelopeEventStatusCode": "declined"
          },
          {
            "envelopeEventStatusCode": "voided"
          }
        ]
   }  
}
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56669698

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档