Forum Discussion
Former_Member
8 years agoAccelerator III
You most definitely can. A few more advanced tips to keep in mind:
action='merge'is useful if you don't know if the item exists. It will create the item if it doesn't, or edit the item if it does. Otherwise,action='add'oraction='edit'work just as well.- If you attempt to edit the current version of an automatically versioning item (like a part) multiple times, the id of the item you want to edit will continually be changing. In this situation, it is useful to construct a query such as
<Item type='Part' action='edit' where="[Part].[config_id] = 'CONFIG_ID'"><!-- edits --></Item> - For some obscure reason (probably a bug),
action='edit'does not work on old revisions of a versionable item (whereis_current <> '1'). In those situations, you have to perform three queries:action='lock',action='update', andaction='unlock'.