- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2016 08:44 PM
Hi all,
I have a multiple choice variable named dual_monitor on a catalog item. It has two values yes and no. Also, It is part of a variable set. Once the user submits the order an event is fired which will send email notification to the approver to approve the requested item. How do I pass this variable and its value in the notification. I tried various combinations but unable to refer it. Below is email content. Also requested for field appears blank in the notification. Any suggestions?
.
Thanks & Regards,
Akriti
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2016 01:49 AM
I had a small typo. Instead of current.ref_sc_req_item.sysapproval.variables.<variable_name>, try
current.sysapproval.ref_sc_req_item.variables.<variable_name>
The "type casting" comes after, not before. By using "ref_sc_req_item", you are type casting sysapproval reference which is of type task. Using this syntax you can get not just the variables, but any other fields that are specific to the record that is type casted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2016 01:01 AM
current.ref_sc_req_item.sysapproval.variables.<variable_name> might actually work. Avoids some scripting.
"ref_<sys_class_name>" tells to resolve the next dot-walk field to be resolved as a record of <sys_class_name> class.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2016 01:10 AM
It doesn't work in Fuji . Does this have any known documentation?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2016 01:49 AM
I had a small typo. Instead of current.ref_sc_req_item.sysapproval.variables.<variable_name>, try
current.sysapproval.ref_sc_req_item.variables.<variable_name>
The "type casting" comes after, not before. By using "ref_sc_req_item", you are type casting sysapproval reference which is of type task. Using this syntax you can get not just the variables, but any other fields that are specific to the record that is type casted.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2016 01:55 AM
Thanks for sharing this as I learnt something new today!
Is this a documented feature though? If it isn't then it would be at risk of not working in future upgrades
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2016 07:58 AM
Thanks a lot Siva! Works perfectly!!