Validate JSON data model before applying Import Mapping

1
Hello, I’m working on a new published REST service and I would like to perform validation checks before executing the Import Mapping. I’m having trouble locating this functionality. It seems like the Import Mapping is applied before any Microflow. Is that correct?   Thanks! Ryan
asked
2 answers
2

Ryan,

Is it a published REST service?  If so, you can accept an http request as a parameter for the microflow.  Doing so, you can then get the Content of the request and use an Import with Mapping activity in your microflow.  If you define error handling on this mapping activity, you’ll be able to see if the content imports successfully.

Hope that helps,

Mike

answered
0

Ok. I have it working the way I’d like, but I’m not sure it’s correct. It breaks the Swagger integration with the way I have it now.

In order to get Swagger to work correctly, i have to specify a body parameter. If I use a body parameter, any bad data will throw a 500 from the server instead of the expected 400.

I can add screenshots if that would make the example easier to understand.

https://ibb.co/kxkC45K
https://ibb.co/7k47Bs8

answered