cancel
Showing results for 
Search instead for 
Did you mean: 

OData Request with Multiple Response In body

rakshit_doshi
Active Contributor
0 Kudos

Hello Experts,

I am running a scenario wherein on passing a particular parameter as input the web service returns multiple entries in array of a complex type.

Something like below

For that i Created a complex type of News with simple properties like Title, FileURL,Description, Date, String  and then one more complex type of GetNewsResult and added a complex property within it of the type News. Then created an Entity Model with a complex type GetNewsResult.

I then mapped them as below. (I think this is where i am doing something wrong)

When i run it in the URL i get a mapping error.

Can anyone please advice on this.

Thanks,

Accepted Solutions (0)

Answers (1)

Answers (1)

midhun_vp
Active Contributor
0 Kudos

Hi Rakshit,

You have to define GetNewsResult as an entity type and News as its complex type. If you need to pass input, create a property inside GetNewsResult. While mapping the response you can disable with the input field created (right click > disable).

Regards, Midhun

SAP Customer Experience Group - CEG