I want to update the Opened by user

JVINAY
Tera Contributor

Hi Team ,

My requirement is :

Update requests CITs to reflect correct associate.  

 

Currently, any Cloud task created is showing the original requestor's name instead of the actual creator's name. I want it to correctly display the name of the person who created the CIT in the 'Opened by user' field

 

Opened by :  u_intake.opened_by 

 

 

Existing  Record producer Script :

producer.portal_redirect = "?id=cloud_request&table=u_cloud_intake_request&view=portal_view&sys_id=" + producer.u_intake.sys_id;
current.parent = producer.u_intake;
current.u_cloud_task_type = 'Review';
current.short_description = 'CIR Requestor change request';
current.opened_by = producer.recipient;
current.assignment_group = '1a527886dbe9bb40ee5c24f40596194d';
current.description = "Please work on the change of CIR requestor to " + producer.please_select_new_requestor.getDisplayValue() + " as per the justification : " + producer.please_provide_reason_for_change + " given by " + producer.recipient.getDisplayValue();
 

 

 
 
Please help to update the Script.
 
Thanks in advance .

 

:

9 REPLIES 9

GlideFather
Tera Patron

Hi @JVINAY,

 

on the record producer, locate the variable (Recipient) and click Map true and select Opened By:

GlideFather_0-1756712020117.png

 

In this case my variable "Reported on behalf of" is mapped to Caller. but you can change it to Opened by:

GlideFather_1-1756712062637.png

 

NOTE: just be very careful, compare the two screenshots I added. When you map your variable to the backend form's field, it will change the name so if you have applied any catalog client scripts or catalog ui policy actions it might destroy it... but it will satisfy your requirement :))

 

PS: never share personal details like the names you just did... instead create dummy users and share the demo data 😞

 

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


Hi @JVINAY,

have you tried this mapping?

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


Hi @GlideFather 

 

I haven't see Map to field option in this Variable

 

Please refer below image

 

JVINAY_0-1756972447520.png

 

Hi @JVINAY,

 

the field is hidden, so you either need to add it to the form or you can perform the same in the list view by adding the columns to it.

 

GlideFather_0-1756977540440.png

 

Add "Map to field" and "Field" on variables table.
Mark the first true and then select what field to map to.

 

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */