Why Requested For is auto populating incorrectly in Request summary and RITM record?

Ankita28
Giga Contributor

Hi Community,

I created a request for Aaron Shelly from portal and submitted the form.

After Submitting the form,in Request Summary showing Requested For as incorrect user name.

In platform,for REQ Requested For is showing correct.

 

but for RITM,its showing incorrect user name.

 

Could anybody please help with this issue?

Thanks,

Ankita

 

19 REPLIES 19

Hi,

Replace below code in the workflow and test it,

var rq = current.request.getRefRecord();
rq.requested_for = current.variables.u_requested_for.toString(); 
rq.update();

It's not working.Still the same issue.

did you add logs and check in workflow run script

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

Hi,

Can you confirm the below logs,

gs.log('AAAA: request number is: '+current.request.getDisplayValue());
gs.log('AAAA1: requested for is: '+ current.variables.u_requested_for.getDisplayValue());
var rq = current.request.getRefRecord();
rq.requested_for = current.variables.u_requested_for.toString(); 
rq.update();

Hi Ankita,

Can you confirm me on this, why request field is not showing the request number?

What is the display value true on the sc_request table?