How to map Request_for variables with Ritm Request_for variables

Kashim Khan
Tera Contributor

Like the below screenshot ..i want the exact value for request_for which is mentioned in the variables section.
Can anyone provide me BR code...because I have to write only BR.


Thanks in advance.

find_real_file.png

2 REPLIES 2

Harish KM
Kilo Patron

Hi you can have this in before insert BR on sc_req_item table

 

current.requested_for= current.variables.requesting_for; // write the variable name of the Requestor variable in place of bold text

PrashantLearnIT
Tera Sage

Hi Kashim,

You need a Business rule for that.

var req = new GlideRecord('sc_request');

req.get(current.getValue('request'));
req.requested_for = current.variables.requested;

req.update();

if the field is on the requested item table, you can use it before update the business rule.

current.u_requested_by = current.variables.requested;

Best Regards,

Prashant

If my answer helped you in any way, please mark this answer as helpful and correct.