Hi,
I have an application that consumes a standard NAV OData service, Page 51 - Purchase Invoice. I am crating the Purchase header and its related lines. I would like to create the header and the lines in one single transaction. So that, if one of the lines is wrong the system doesn't create neither the header nor the lines.
I am trying to achieve this goal by calling the SaveChanges function with the BatchWithIndependentOperations option enabled, but I am getting the same error all the time "The remote server returned an error: (404) Not Found.". I am able to create the purchase header and the lines successfully if I use None (default option).
Questions:
- Do you know if the BatchWithIndependentOperations option is supported in an OData NAV web service?
- If it is supported, how can I make it work?
Many thanks.
Answers
I am not 100% sure but...
I don't see BatchWithIndependentOperations implemented or documented anywhere in NAV.
Good luck.
I agree it is not there, it seems that it is not supported NAV.