- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2022 02:20 AM
Hi All,
Hope today finds you well 🙂
Hopefully a simple one but strangley cannot find anything about it outside of this thread but doesn't help me as i cannot use an action script...https://www.servicenow.com/community/it-service-management-forum/flow-designer-set-logged-in-user-in...
I'm trying to set the assigned_to field to the user who runs my flow, i have the flow to run as the person who initiates it, but the field does not populate. The idea is the first advisor to respond to an email and update the ticket gets that ticket assigned to them...Any ideas?
Thanks all,
Screenshots below:
Solved! Go to Solution.
- Labels:
-
flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2022 02:36 AM
Hi
in the inline script of your update action just write
return gs.getUserID();
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2022 02:36 AM
Hi
in the inline script of your update action just write
return gs.getUserID();
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2022 02:43 AM
Thanks @Maik Skoddow that works glad it was simple in the end
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2022 02:46 AM
Glad to help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2022 02:41 AM
Try replacing
var assignedto = fd_data.trigger.current.gs.getUserID();
with
var assignedto = gs.getUserID();