โ03-13-2018 06:31 AM
How to find incoming data format dynamically?
Say for example,
Can any one suggest How to find incoming data format during the run-time. by using single input view for the pipeline?
โ03-14-2018 06:43 AM
Can the incoming request also send a parameter of โfile_typeโ? Then you could use a router based on this value to handle it as JSON or XML or any other file_type that is sent.
โ03-14-2018 06:57 AM
Yes we have done the same and found the solution for the above approach.
In binary router we are validating the JSON or XML input streams and then doing our further works.
Thanks for your attention.
โ02-19-2019 08:17 AM
We did the same, when we tested with a FIle Reader snap and specified a file from SLDB, we found that the field we need to check is โx-amz-meta-mimetypeโ. When we remove the File Reader snap, create a task and use postmanโฆ the input does not have this field. We tried using content-type and this fails tooโฆ Could you please provide what the conditions in the router were?
โ02-19-2019 09:09 AM
Do you mean a Triggered Task? The Content-Type header for a POST (and a few others) come in as pipeline parameters. To get the Content-Type, youโd use:
_CONTENT_TYPE