- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2017 01:26 PM
Hi, So I am have a form and when they submit the form it creates a record and kicks off my workflow. I have a script where I get the values they entered by current.name
i.e. current.first_name will return the name they entered into the form for that field.
One of the fields is of type list collector. So as they type it connects to a table and gives options for them to select from, but when I do current.list_collector_name it returns a long random string. i.e. 07c37bb06f75a54032f6792f8e3ee4b7
Any ideas as to why this is happening and how I get the value the user selected?
Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2017 03:11 PM
That's a sys_id.
Try 'current.list_collector_name.getDisplayValue()'
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2017 03:11 PM
That's a sys_id.
Try 'current.list_collector_name.getDisplayValue()'
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2017 03:34 PM
Hi kylekaplan,
Its not a random string but a GUID (sys_id) which points to the record to which your list collector is referencing. List collector is a data type where you can select multiple values, so as users select more values you'll get CSV of sys_id's i.e. something like: 07c37bb06f75a54032f6792f8e3ee4b7,07c37bb06f75a54032f6792f8e3ee4b7,07c37bb06f75a54032f6792f8e3ee4b7. If you want to get the display values, please go ahead as suggested by Tim. Else, you'll have to separate out the sys_id's through current.list_collector_name.split(",") and push the individual ID's wherever required.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2017 07:29 PM
Hi Kyle,
The below statement will give you the output you want.
current.list_collector_name.getHTMLValue();
Hope this helps. Mark the answer as correct/helpful based on impact.
Thanks
Antin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-07-2017 10:04 AM
Thanks everyone. All the answers helped. I marked Tim's answer because it was first and what I went with.