Forum Discussion
Hi koryknick ,
We cannot map it dynamically rit, we are going to get new files(for new objects) and column names. So everytime we get a new field or file we need to map it manually in the pipeline. Also we have different Target tables to insert. Can we do it using a control table , is it possible for real time translation.
Thank you for your response.
You might want to look at the Binary Router snap to see if that might solve what you’re trying to do.
Hi @koryknick
Based on content-type only will route the data in Binary Router snap. But how to get that field, I am giving the incoming data from postman. I am not able to get that.
Please help me with this.- Aleksandar_A3 years agoContributor III
Hello @pjanapati,
If you specify the Content-Type header in the request, you should be able to access it within the SnapLogic Pipeline by using _CONTENT_TYPE.
e.g.
For more information please refer to [Passing Pipeline Arguments to Triggered Tasks].
Sample pipeline:
sl-comm-request-data-type_2023_04_26.slp (8.0 KB)Let me know if this helps you.
BR,
Aleksandar.
Here is a sample pipeline using the Binary Router and the $[‘content-type’] binary header.
SimpleAPI_2023_04_26.slp (11.6 KB)Here also is a screenshot of the JSON call:
I tested and this also works with application/xml as Content-Type and XML content in the body.