I am trying to use sales order and Purchase order API in NAV 2018. I have been able to pass the data in header using postman. But I do not see any line items while getting the data from NAV. Is there any process on viewing the line items in JSON format?
0
Answers
https://docs.microsoft.com/en-us/dynamics-nav/fin-graph/api/dynamics_create_salesorderline
you can do deep inserts trough the navision API, see following post for info regarding your custom page:
https://forum.mibuso.com/discussion/72423/api-deep-insert-not-working-in-custom-entity
info regarding deep insert:
https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/webapi/web-api-basic-operations-sample#section-3-create-related-entities-deep-insert
Regards,
foo
ex: http://{{url}}/{{service}}//API/beta/companies({{companyId}})/SalesHeader?$expand=SalesLine
ex:
{
"number": "123456"
"salesLine": [
{
"number": 123456,
"lineNumber": 10000
}
],
}