# How to retrieve an HTTP destination file and send it to Salesforce

**URL:** <https://community.synatic.com/t/how-to-retrieve-an-http-destination-file-and-send-it-to-salesforce/242>\
**Category:** Flows\
**Tags:** helper-functions\
**Created:** [June 3, 2022, 1:37pm UTC](https://community.synatic.com/t/how-to-retrieve-an-http-destination-file-and-send-it-to-salesforce/242 "2022-06-03T13:37:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![navessa](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.synatic.com/navessa/32/58_2.png) [@navessa](https://community.synatic.com/u/navessa)\
**Post date:** [June 3, 2022, 1:37pm UTC](https://community.synatic.com/t/how-to-retrieve-an-http-destination-file-and-send-it-to-salesforce/242/1 "2022-06-03T13:37:39Z")

</div>

Illustrated in the images below are an Async Flow at the end of a main flow that will call a 2nd flow to pull the data from the main flow, convert it to JSON using the JSON reader step, then using a GET to pull the referenced data in the HTTP Service source step in a sub flow and eventually going to the Salesforce Content Version destination step after combing the data.

![image](https://canada1.discourse-cdn.com/flex032/uploads/synatic/original/1X/5584c01ce8aacc0f3fd3083f6d2db930dc941e66.png)

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/synatic/original/1X/a19e7a23971b97c92c9b867e6d05c01069e8bdb3.png)

In the Calculator step, parameters for the file is being created and the file is being zipped by using `inputRecord.attributes.type + ".zip";` as shown in the below image. Another way to do this is by using a Zip step.

![image](https://canada1.discourse-cdn.com/flex032/uploads/synatic/original/1X/a3527567c4884b8a83198a181e58dc5e78a9d61f.png)

In the image below is the HTTP service source step which is pulling the file using the “app\_number” and “id” fields.

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/synatic/original/1X/c246d0f14666eba839ada8b39a351b32587ac3b6.png)

Illustrated in the below image is the Salesforce Content Version step which will upload the file to Salesforce using the created parameters.

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/synatic/original/1X/2e6204dce72bcb5b2645b0056e5ce96467eef227.png)

[Salesforce Content Version Step](https://community.synatic.com/t/salesforce-content-version-step/138)
