I'm working on a data export to keep a website updated, and I'm building a table to act as a queue for any changes that occur that can then be grabbed and pulled out through webservices.
In order to make this as simple as possible, I'd like to record the Key field in my table whenever a table I'm interested in is updated, but I realize this key isn't really used directly in this way throughout the system. Is the Key field reliable? Is there a reason I should avoid using it in this way, and instead use the actual Primary Key fields set for that table, or can I use it to indicate that a particular record needs to be looked at? Does it ever change?
I should probably use the primary key fields anyway, since that's how I'm recording the reference on our web site (and it's the only way to handle record deletions anyway), but I'd like to understand more about the Key field, how it's used, and why it seems to be more of a background field than an actual primary key.
0
Answers
Btw, were you able to call the Delete (or Update) method of your NAV Web Service without calling the Read method beforehand? I mean you probably know the Primary Key of that record, but you're still not allowed to change it until you use the current "Key" value? Were you able to generate "Key" without calling the Read method?