Skip to main content
Participant
September 7, 2022
Question

Is it possible to use a Salesforce Flow to attach files to an agreement?

  • September 7, 2022
  • 2 replies
  • 572 views

I am a consultant for a company that uses Abobe Sign for Salesforce, and there is a requirement to attach single and multiple files (idealy from the echosign library) to a new agreement that has been created from a template. Rather than creating all the possible templates, with all the possible combinations of files (there are a lot), I am looking to create a flow will add the attachments based on a picklist value. Is this possible? Thanks

This topic has been closed for replies.

2 replies

Participant
March 11, 2024

Hey Chris,

 

In case you or anyone else sees this, I determined this was possible and have it working successfuly. Caveat - this method utilizes Salesforce files, not the echosign library :(.

 

You can use the runtime variable option for attaching documents in the Adobe Sign Template - For example to attach two documents, you could add two document runtime variables in the template such as myAttachment1 and myAttachment2.

 

Within the flow, you can pull the picklist value and determine which document(s) IDs you want to assign to those two variables based on the picklist value. The key is Adobe Sign requires you use the Content Document Version ID. However, if you query the Content Document object, there is a field containing the ID of the latest version. This way you always ensure you are pulling the latest version into the template. Then within the flow, you create a text variable containing the runtime variable and document version ID (example: myAttachment1=0685d00000g0hznAAA,myAttachment2=0685d00000g0hznABC). Content Document Version IDs start with "0685" so be sure you are using an ID from the correct object. I couldn't get this to work at first because I was using the Content Document IDs.

 

Then utilizing the Load Agreement flow apex action included Adobe Sign package, specify which Adobe Sign Template you want to use and the name of your flow variable containing the document IDs. I attached the flow to a button on the page layout so the user can click to generate an agreement and merge in all of the documents dynamically. You can do the same with recipients.

Participant
February 22, 2024

Curious if you ever found a solution to this challenge. I am currently facing the same.

Meenakshi_Negi
Legend
March 6, 2024

Hi Jacob35613196ahno,

 

Thank you for reaching out, and sorry about the delay in response.

 

We have checked your account using the email address used to sign in here on the community board. It shows that you are using the free service.  

As you have Salesforce integration question, the experts can best answer it. If you have the Adobe Sign Enterprise plan, please contact our Adobe Sign Enterprise support team for the correct information. You may contact them using the steps in the following help document: https://adobe.ly/4c6Xr8v.

Refer to the following help document for more information on Acrobat Sign Integration: https://adobe.ly/49HfGQg

 

Thanks,

Meenakshi