Retrieve User ID in Flow Designer from a user select list variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-15-2024 11:12 AM
We currently have automation set up between our SN instance and Jira which allows us to add users to application access groups once a task is created for our assignment group. In this instance using
var names = fd_data.trigger.current.variables.users.getDisplayValue()//user variable
var just = fd_data.trigger.current.variables.business_justification_program_requirements.getDisplayValue();
var desc = just+"\nUsers: "+names;
return desc

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-15-2024 11:24 AM - edited ā01-15-2024 11:25 AM
Assuming variables.users is a reference, you should be able to dot walk directly to the value.
fd_data.trigger.current.variables.users.user_id // or whatever the field name is
If it's not a sys_user reference what is the data type of that variable?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-15-2024 12:04 PM
@Elijah Aromola wrote:Assuming variables.users is a reference, you should be able to dot walk directly to the value.
fd_data.trigger.current.variables.users.user_id // or whatever the field name is
If it's not a sys_user reference what is the data type of that variable?
How can I check the data type? Using the typical javascript '.className' always come back undefined.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-15-2024 12:12 PM
Can you share the config for the variable?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-15-2024 12:37 PM