Skip to main content
Participant
July 8, 2020
Answered

Adobe Sign REST API v5: Uploading File to File Attachment Field

  • July 8, 2020
  • 1 reply
  • 1021 views

I'm using the Adobe Sign REST API v5's POST /workflow/{workflowId}/agreements.

I'm trying to upload an attachment to a file attachment field. However, I can't seem to get it to pre-fill. Do you have any suggestions or possibly see the mistake I'm doing?

 

Sample Body:

 

 

 

 

{ documentCreationInfo: {
fileInfo: [{ name: "document", workflowLibraryDocumentId: "id"}],
mergeFieldInfo: [{ fieldName: "file.attachment", default: "data:image/png;base64, ..."}],
name: "name",
recipientsListInfo: [ { name: "Signer1",  recipients: [{ email: "email@hotmail.com"}] }]
}

 

 

 

 

Alternatively, I tried importing as a file:

 

 

 

 

{ documentCreationInfo: {
fileInfo: [
{ name: "document1", workflowLibraryDocumentId: "id"}, 
{ name: "document2", documentURL: {  url: "data:image/png;base64, ..." }
],
mergeFieldInfo: [],
name: "name",
recipientsListInfo: [ { name: "Signer1",  recipients: [{ email: "email@hotmail.com"}] }]
}

 

 

 

 

 

This topic has been closed for replies.
Correct answer Eva Ng

I think I did, however this was 2 years ago, so I don't recall the exact solution but I remember it had to do something with changing a field to string despite what it asked for. 

1 reply

Participant
April 30, 2022

I have the same problem. You solved?

Eva NgAuthorCorrect answer
Participant
April 30, 2022

I think I did, however this was 2 years ago, so I don't recall the exact solution but I remember it had to do something with changing a field to string despite what it asked for. 

Participant
April 30, 2022

I am trying in all ways but I can't. I can't find anything on the internet. I would be grateful if you would help me