How to find the incoming data format (like json or xml) dynamically
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2023 10:28 AM
Hi everyone,
I am passing the data from postman and I need to route the data based on the incoming data whether it is json or xml. Based on this, I have to do the other logics. So my issue was, how to find the incoming data format? For this I have tried some ways but those are not worked for me. Can you please anyone help me with this.
Thanks in advance.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2023 06:06 AM
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.
