โ07-26-2021 10:12 AM
Iโm trying to return a hash of a CSV document Iโm returning in a triggered task and I want to return it in a HTTP header.
I would have thought i can do it the same way i can manipulate the status code by setting a binary header, but the headers arenโt coming through.
Does anyone have an idea how to achieve this? (Ideally without buying any additional subscription services, thanks)
Hereโs an example of the output of the csv formatter:
Best regards
Thomas
Solved! Go to Solution.
โ07-26-2021 11:50 AM
Hi @Henchway,
If you are referring to having a SnapLogic triggered task respond with a custom HTTP header value, then these are the following scenarios:
The $content variable within the Mapper will contain the response body so ensure thatโs there if necessary.
Thanks,
Ali
โ07-26-2021 11:06 AM
Hi @Henchway
If you have the key $content
mapped in your response document, that will be considered the response body, and the rest of the key/value pairs are treated as response headers.
โ07-26-2021 11:50 AM
Hi @Henchway,
If you are referring to having a SnapLogic triggered task respond with a custom HTTP header value, then these are the following scenarios:
The $content variable within the Mapper will contain the response body so ensure thatโs there if necessary.
Thanks,
Ali
โ07-27-2021 02:21 AM
Thank you very much, i wasnโt aware that I had to use the override URL to use custom headers!
Best regards
Thomas