Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

OData Update Operations in D365Ax7

$
0
0

Hi friends,

                How to update the D365 AX7 customer  form using Odata service(integration).

I have created the new records in customer form using odata like:

string CustomerNumber = "THMF-000013";
Customer customer = new Customer();
DataServiceCollection<Customer> CustomerCollection = new DataServiceCollection<Customer>(Context);
CustomerCollection.Add(customer);
customer.CustomerAccount = CustomerNumber;
customer.Name = "Antony";
customer.CustomerGroupId = "10";
customer.SalesCurrencyCode = "THB";
customer.DataAreaId = "THMF";
customer.AddressCountryRegionId = "AFG";
Context.SaveChanges(SaveChangesOptions.PostOnlySetProperties | SaveChangesOptions.BatchWithSingleChangeset); 

Please give a suggestion.

Thanks & regards,

Ashwini


Viewing all articles
Browse latest Browse all 72043

Trending Articles



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