PATCH Operation through Groovy script to update the Queue id of an SR
Summary:
Hello Everyone,
For our scenario, We are getting the Queue id from an external system through API.
In the Before Insert trigger we are receiving the Queue id and trying to set to the Assigned Queue id field. However with the normal requestor (Helpdesk user) role it looks like they don't have the privilege to update the Queue field and trigger is failing . (trigger is working for agent login.)
As a alternate , was thinking of registering the fusion SR Rest api (register with Basic auth with the user who has permission). And invoke the PATCH method from the before insert trigger.