Forum Discussion
Hi @alchemiz ,
Thank you very much for the response. I still couldn’t understand how I could download the CSV file. Could you please let me know the snap that I could use to download the CSV file once I make the REST API call “/bulk/v1/leads/export/{exportID}/file.json”?
“file.json” REST API call returns a CSV file as per Marketo documentation.
- bojanvelevski3 years agoValued Contributor
Hi @srini.polimera,
You’re on the right track. $ should produce the data that you send in the body of the request, you just need to open an input view on the mapper.
Let me know if this helps.
Regards,
Bojan - JensDeveloper3 years agoContributor II
Hi @srini.polimera ,
I would create an ultra task of the pipeline and then do a POST on postman to give the content with it.
Example pipeline below with your data.
In postman use bearer token authentication woth the token from the task then use the endpoint in the task and paste the input inside body with json selected:
get_content_from_postman_2023_04_05 (1).slp (10.5 KB)If you are using a triggered task you can pass the input as query parameters because triggered is only with a get request (in my experience, wrong also possible with post check replies below) and access them through the pipeline parameter QUERY_STRING. Example below
get_content_from_postman_triggered_2023_04_05.slp (7.1 KB)
If someone knows a more efficient solution let me knowRegards
Jens
- bojanvelevski3 years agoValued Contributor
Hi @JensDeveloper,
I beg to differ.
Triggered task can be used with a POST method, by opening one input view and one output view.
Regards,
Bojan- JensDeveloper3 years agoContributor II
Hi @bojanvelevski ,
Wow thank you for correcting me, haven’t used this option yet, It will make my pipelines much better.
So this is the corrected pipeline with triggered task.
My apologies for misunderstanding.
get_content_from_postman_triggered_V1.0_2023_04_05.slp (3.8 KB)Regards
Jens
- srini_polimera3 years agoNew Contributor III
Thanks for quick response. Now I got it.
Related Content
- 6 months ago
- 11 months ago
- 2 years ago
- 4 years ago