It's all about the answers!

Ask a question

Find by API the local file name of new file in discarded change set


Gidi Gal (961939) | asked Sep 29 '16, 1:38 p.m.
Hello to the forum members,

I'm interested in the following scenario:
1) Create a change-set with new file in it.
2) Discard the change-set.

I'd like to find the local file name of the discarded file. I follow the events being listened by EventManager. I see that event IChangeHistoryEvent is being called with the type IChangeHistoryEvent.DISCARD_CHANGE_SETS. However, the versionable I receive does not have a state ID, so trying to get its local path using ICopyFileArea fails.

I'll be grateful for suggestions how to get the file name of the deleted file.

Thanks,
Gidi

Be the first one to answer this question!


Register or to post your answer.