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();