Not able to map json array in response.

0
I am getting array for objects in response, I am not able to consume the response.  My domain model, microflow message definition, and mapping looks like this      
asked
3 answers
3

Hi Ankush,

Your mapping is wrong. Here’s what the mapping should look like based on the JSON response that you provided in your comment.

 

Here’s a sample microflow that imports the JSON response using the mapping that I provided above.

answered
2

How is the json looking? I think that might help

answered
0

Ankush,

When you try to execute the microflow, do you receive an error message?  If so, can you share it here?

One thing I noticed:  in your microflow, you retrieve a list of content objects.  However, content objects don’t have the article information you are trying to retrieve.  To get that information (from the articles entity), you’ll need to loop through your content list and retrieve a list of articles for each content object.  Then you can loop through each article and get the author, title, description, article/content etc.

Hope that helps,

Mike

answered