Auto populating value of variables from Workplace case to Workplace task

VISHAL69
Tera Contributor

Hi ,

 

I created 2 fields on workplace task which is similar like incident task. 

So, there is 1 record producer which is basically responsible for creating workplace case.
Variables selected while submitting record producer are visible under Workplace case section named case variables.

 

My requirement is that when i select new from related list of workplace case to create workplace task, value of these 2 variables visible under section Case variables of Workplace Case should be auto populated.
For that i have written Onload client script which i am sharing as screenshot. From the script i am getting the alert as null at line no 13.

On workplace task these fields are showing as Undefined.

What exactly I am doing wrong here?

VISHAL69_0-1695118369460.png

 

fields showing as undefined on workplace task.

VISHAL69_1-1695118444730.png

Variables in workplace case

VISHAL69_2-1695118506378.png

 

 

Regards

Vishal Mishra

 

 

0 REPLIES 0