How to set "Requested for" on Request and Requested Item

Kyle Krick
Giga Contributor

Is it possible to set the field "Requested for" on a catalog item's Request and Requested item records? I have many catalog item to create where the Requested for is not supposed to be the person who actually filled out the form. However, Requests and Requested Items default the "Requested for" to the person filling out the form.

I have defined a "Requested for" variable set that asks for a user record who the catalog item is actually being submitted for, because only a few people have access to these forms, so they submit it on behalf of other users.

I want to know the best way to set the Request and Requested Items "Requested for" to match what the user enters into the question in my variable set. Can it be done with a catalog client script? Could it be done on a variable set? Ideally I'd like to do it on the variable set so that every catalog item that uses my variable set picks up this behavior, rather than having to replicate something on every single catalog item.

1 ACCEPTED SOLUTION
6 REPLIES 6

@Milind I used your solution, the requested_for field is updated on request (REQ) record as expected and the display Value of Requested_for field of RITM is updated as expected too, but I opened RITM xml file using "Show XML",  and its xml show that Requested_for field is still not updated (still keep opened by valuse).

 

Any suggestion?

Dyong_0-1701911622283.png

 

@Milind I used your solution, the requested_for field is updated on request (REQ) record as expected and the display Value of Requested_for field of RITM is updated as expected too, but I opened RITM xml file using "Show XML",  and its xml show that Requested_for field is still not updated (still keep opened by valuse).

 

Any suggestion?