Insufficient privelege for: (IItem)session.getObject(…);
Hi, Can you help me why I receive “Insufficient privilege” for the below row when I use the Save As function? I tried to give the PX to the appropriate privilege, but something is missing…
ISaveAsEventInfo f = (ISaveAsEventInfo) req;
This row throws the exception => IItem newObj = (IItem)session.getObject(ItemConstants.CLASS_PART, f.getNewNumber());
Thanks, Feri
Hi Feri
Definitely sounds like you haven’t given the complete set of roles to the Event handler
One way to troubleshoot is to create a dummy user with the “exact” roles you gave to the event and see if you can search for the part number
– Raj