Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9193

Re: DI API: Updating Item Master Data

$
0
0

Hi Phil,

 

To retrieve an existing item so you can update it using the DI API, you have to call the GetByKey method of the object. This returns a true or false value, telling you whether the item code you requested exists or not in the company database. If the item exists then its properties are automatically loaded in to your item object:

 

If vItem.GetByKey(Cstr(Worksheets(1).Range("A2").Value)) Then     ' Change properties here     ....     ....     ' Update your item     vItem.Update
Else     ' Item not found
End If

Kind Regards,

 

Owen


Viewing all articles
Browse latest Browse all 9193

Trending Articles



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