Auto populating value of variables from Workplace case to Workplace task
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2023 03:16 AM
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?
fields showing as undefined on workplace task.
Variables in workplace case
Regards
Vishal Mishra