Skip to main content
Participant
Jul 8, 2020 7:51 PM UTC
Answered

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

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 is closed to new replies. Start a new post to keep the conversation going.
Eva NgCorrect answer
Participant
Apr 30, 2022 9:47 PM UTC

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. 

5 replies

Participant
Apr 30, 2022 9:27 PM UTC

I have the same problem. You solved?

Translate
Eva NgAuthorCorrect answer
Participant
Apr 30, 2022 9:47 PM UTC

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. 

Translate
Participant
Apr 30, 2022 9:53 PM UTC

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

Translate