- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2022 02:53 AM
I have set up various record producers which need to have a short description of the record populated with multiple variables from the record producer.
I have the following script in the record producer:
current.description = "Requested for: " + current.requested_for + "\n" +
" Desk Chair type: " + " Standard " + "\n" +
" Reason for request: " + current.reason_for_request;
Two questions:
1. current.requested_for, is returning a sysID to the description field (It is a Requested For field).
2. current.reason_for_request is returning undefined. (It is a select box)
Thanks for any help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2022 02:58 AM - edited 10-25-2022 02:59 AM
Try the following code
To access Record producer variables use producer.variable_name
current.description = "Requested for: " + current.getDisplayValue('requested_for') + "\n" +
" Desk Chair type: " + " Standard " + "\n" +
" Reason for request: " + producer.reason_for_request;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2022 02:58 AM - edited 10-25-2022 02:59 AM
Try the following code
To access Record producer variables use producer.variable_name
current.description = "Requested for: " + current.getDisplayValue('requested_for') + "\n" +
" Desk Chair type: " + " Standard " + "\n" +
" Reason for request: " + producer.reason_for_request;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2022 03:11 AM
Worked Perfectly. Thank you Sai! 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2022 02:59 AM
I dot walked to current.requested_for.user_name. Which resolved the sysID issue.