Populate the requested for catalog item variable

Aditya37
Tera Contributor

Hello Community,

I would like assistance with populating the request.requested_for field using the custom variable named requested_for.

In the catalog item, we have created a custom variable named requested_for. When we submit the request, the "requested for" is correctly set in both the request and the RITM.

Now, we want to display the value of the requested_for in our custom variable.

Please refer to the below screen shot.

 

Aditya37_2-1701675328188.png

 

Thank you.

 

 

8 REPLIES 8

Prince Arora
Tera Sage
Tera Sage

@Aditya37 

 

How you are selecting the requested_for on RITM or REQUEST table? I assume it is picking the current loggedin user

 

You can update the custom variable of catalog item in the workflow(runscript) as:

current.variables.requested_for = current.requested_for;

 

If my answer solved your issue, please mark my answer as  Correct & 👍Helpful based on the Impact.

@Prince Arora 

 

Want to set requested_for using flow designer. Is there any way to set the requested for using flow designer?

Ankur Bawiskar
Tera Patron
Tera Patron

@Aditya37 

request.requested_for is by default populated with logged in user.

To set it explicitly you will require script.

You can use Lookup record on REQ and then set the field value with the variable requested for

where are you stuck?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar 

We are trying to set the requested for using the look-up but still not working. could you please assist regarding that?

 

Aditya37_0-1701685155715.png

 

Thanks