Can a Groovy Script PX be used to update item attribute when PX is initiated from a Change Order

I’m attempting to create a Script PX which is initiated from a change order. It finds the part number of a specific subclass from the affected items list and then attempts to update a page-three attribute of that item. Said attribute is not change controlled, so making this change to the item should not require another change order.
It appears to error with “Insufficient Privilege” when trying to access the IItem object from the change.
 item =(IItem)session.getObject(ItemConstants.CLASS_DOCUMENT,partnumber)
,where partnumber is a variable with the name of an item that is a document class object.
For testing, the PX has an Agile Admin role which has access to update any item attributes.


Agile Professional Asked on April 24, 2019 in Agile PLM (v9),   Product Collaboration.
Add Comment
2 Answer(s)
Best answer

I’m not sure if this will help your privilege issue, but I had a question about Groovy, and it is working.  This was my post:

Agile Talent Answered on May 1, 2019.
Add Comment

It might be worth creating a new role with all permissions required (discover, read, modify, etc.) to confirm it’s really not permissions related. Also, use a test account with the exact same roles assigned to confirm it’s working manually.

Agile Angel Answered on April 24, 2019.
Add Comment

Your Answer

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