Quantcast
Channel: NAV Three Tier — mibuso.com
Viewing all articles
Browse latest Browse all 10032

How to saveChanges in a transaction using NAV OData web service

$
0
0
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:
  1. Do you know if the BatchWithIndependentOperations option is supported in an OData NAV web service?
  2. If it is supported, how can I make it work?

Many thanks.

Viewing all articles
Browse latest Browse all 10032

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>