AnsweredAssumed Answered

How to filter out AFObjects to not be updated by the import operation on a PI-AF server?

Question asked by Noga on Feb 14, 2019
Latest reply on Feb 14, 2019 by Noga

I use AF SDK to import AFObjects xml files from a source PI-AF server to destination PI-AF server using the PISystem.ImportXml() method.

 

I wish to be able to keep dest PI-AF server user changes made to the server. Therefore I want to be able to 'lock' those AFObjects (such as Elements, Templates, etc..) which the user modified on the dest server, before importing the source server xml, to protect them from updates.

 

My question is: What is the best way for me to achieve that?

 

I thought of calling the CheckOut() method for locking the objects, and then after the import, call the UndoCheckOut() on these objects.

Is that a good strategy? or are there any limitations to that?

Outcomes