Retrieving an item created with SaveAs via API

I’m creating a simple script that has to make few checks on an item cloned from another one.
It has to run triggered by a SaveAs Object event, but it goes checking the old item (the one that I saved as) and not the new item.

How can I correct these two lines of code to point to the newly created item?
IObjectEventInfo objectEventInfo = (IObjectEventInfo) eventInfo;
IItem currentItem = (IItem) objectEventInfo.getDataObject();

Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.