Document not being passed to docusign

Hi, I have a requirement to integrate with DOCUSIGN where I am passing an appian document to be signed digitally. I used the httppost() function to call the service. Here I need to pass the document in the body in base64 format. I have used convertdocumenttobase64() function to convert the document. The method is being called successfully but I am getting the below error :
{
"errorCode": "UNABLE_TO_LOAD_DOCUMENT",
"message": "Unable to load the document. Unable to load Document(1;a.txt.txt). Error: the document is corrupt, rebuilding failed"
}

Can please anyone help me to resolve this?

OriginalPostID-255248

  Discussion posts and replies are publicly visible

Parents
  • i am passing the document as a json format. Please check the below code:
    load(
    local!documents:{"documentId":"514357" ,"name":"a.txt","documentBase64":convertdocumenttobase64("514357")},

    httppost(
    .
    .
    .
    body:a!toJson({"emailSubject":"TestEmail","emailBlurb":"ShowsHowTocreateEnvlope","recipients":{"signers":{local!signers}},"documents":{local!documents},"status":"sent"})
    )
Reply
  • i am passing the document as a json format. Please check the below code:
    load(
    local!documents:{"documentId":"514357" ,"name":"a.txt","documentBase64":convertdocumenttobase64("514357")},

    httppost(
    .
    .
    .
    body:a!toJson({"emailSubject":"TestEmail","emailBlurb":"ShowsHowTocreateEnvlope","recipients":{"signers":{local!signers}},"documents":{local!documents},"status":"sent"})
    )
Children
No Data