[NAV 2017] ODATA Web Service - POST Json Body with root

AskaronAskaron Member Posts: 4
edited 2020-06-25 in NAV Three Tier
Hello community,

I have a problem with above topic. I published a simple page as ODATA Web Service. If I test the web service with postman it works with a simple JSON body as POST statement:

{
"Field1":"Value1",
"Field2":"Value2"
}

But if I change the JSON body to the following, it don't work:

{
"JSONBodyRoot"
[
{
"Field1":"Value1",
"Field2":"Value2"
}
]
}

I don't have any possibility to change the external system to submit another JSON body so I need to process this root item in my NAV 2017 Page. But currently I have no clue how I should do this with NAV tools.

Is it maybe possible to wrap the JSON Body from the request into some kind of variable? In NAV 2017 I can not publish a function from my page to external.

Thanks in advance and regards.
Sign In or Register to comment.