Updating a Sales order in AX 2012 AIF

Hi all,

When we need to update salesorder, infact any other table we need to specify entity action properly.

When i am updating use the below entity action for the salestable.

salesTable.action = AxdEnum_AxdEntityAction.update; 
salesTable.actionSpecified = true; 

And for sales Line, When you are updating the existing Line use below syntax.

salesLine.action = AxdEnum_AxdEntityAction.update; 
salesLine.actionSpecified = true; 

And when you are inserting a new line to a existing salesorder Use below syntax.

salesLine.action = AxdEnum_AxdEntityAction.create; 
salesLine.actionSpecified = true; 

Happy Daxxing...
 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s