7
The REST API already have support for deep inserts, as documented on https://docs.microsoft.com/en-us/dynamics-nav/api-reference/v1.0/dynamics-rate-limits
The REST API already supports OData 4.01 and a documented OData 4.01 feature is the deep update function:
https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_UpdateRelatedEntitiesWhenUpdatinganE
The deep update function enables the consumer of the API to synchronize related entities in a single call, which is helpful in terms of the API limits and the complexity compared to the alternatives. The alternatives being deleting and creating related entities manually one by one or making a $batch request (which requires at least two requests).
$batch requests are a complicated and an error-prone with mixing request headers in both the request headers and body content. This makes the $batch request data heavy.
The REST API already supports OData 4.01 and a documented OData 4.01 feature is the deep update function:
https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_UpdateRelatedEntitiesWhenUpdatinganE
The deep update function enables the consumer of the API to synchronize related entities in a single call, which is helpful in terms of the API limits and the complexity compared to the alternatives. The alternatives being deleting and creating related entities manually one by one or making a $batch request (which requires at least two requests).
$batch requests are a complicated and an error-prone with mixing request headers in both the request headers and body content. This makes the $batch request data heavy.
STATUS DETAILS
Needs Votes
Comments
$batch request is effectively the only alternative but only a "maximum number of '100' query operations and change sets are allowed in a batch message" so it is not possible to update a document with more than 100 lines.
Category: General
Business Central Team (administrator)
Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future.
Best regards,
Business Central Team