Hi :)
Hopefully someone here can help me with this, I'm finding useful documentation and examples for ODATA in Business Central hard to come by.
I have custom tables ("Inbound Job" and "Inbound Job Task Line"), the usual page (InboundJobQuotes) and subform (serviceLines) setup for ODATA web services. Using Postman I can create a header as follows:
POST [..] InboundJobQuotes
{
"jobno":"JO001",
}
..and a subform line as follows:
POST [..] InboundJobQuotesserviceLines
{
"jobno": "JO001",
"lineno": 1,
"description":, "Description JO001"
}
But that's two round trips. Ideally (And surely it should support this) I want this:
POST [..] InboundJobQuotes
{
"jobno":"JO001",
InboundJobQuotesserviceLines: [
{
"lineno": 1,
"description":, "Description JO001"
}
]
}
I get no error, but no lines are created either.
Anyone know what I'm doing wrong?
TIA