Referring Identity Attribute ServiceDesk Agruments

Hi experts,

Trying to referring one of the Identity attribute in the ServiceNow Service Desk configuration by writing the velocity script, however, nothing gets displayed.

Desk Attribute: Description

Velocity Script:

#set($ctx = $spTools.class.forName('sailpoint.api.SailPointFactory').getMethod('getFactory', null).invoke(null,null).getCurrentContext()) #set($idenObj = $ctx.getObjectByName($spTools.class.forName('sailpoint.object.Identity'), $!plan.arguments.requested_for)) #set($operationalAttribute4 = $idenObj.getAttribute('operationalAttribute4')) $operationalAttribute4

SNOW Ticket:

Need some suggestions on this issue.

Note: I remember we can’t get the context or use any get object in ISC.

Thanks,

Karthi

Hi Karthi,

Than you for the post. If it is an identityAttribute you need then you will need to attach a Before Provisioning Rule and then refer in the velocity.

Hi Rakesh,

Yeah, you are right, but I am looking for something where we can directly get the identity object in the desk attribute configuration using a velocity script.

Thanks,

Karthi

We had a similar requirement and i had raised a query with SailPoint Support as well but they told to have a rule deployed in order to achieve this requirement.

1 Like