AnsweredAssumed Answered

EdmCmd_PostLock: The supplied object ID is not valid

Question asked by Curtis Keiderling on Nov 26, 2019
Latest reply on Nov 27, 2019 by Amen Allah Jlili

I am subscribing to the EdmCmd_PostLock event in my PDM Addin (C#).

I am attempting to access the file being checked out as below,

file = (IEdmFile5)vault.GetObject(EdmObjectType.EdmObject_File, edmCmdData.mlObjectID1);


but receive an error every time: 'The supplied object ID is not valid.'


I have attempted to access the file with the path as well, but recieve a similar error.


Am i misunderstanding the documentation on how to access the file here?