FlowDesigner javascript:gs.getUserID() in condition not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2020 09:43 AM
I am trying to add a condition if the assigned_to of an incident changes and it is NOT the currently logged in user send a slack message
If it is assigned to the current logged in user don't send.
This is my Flow and it is not working, it sends a slack message every time.
Does flow designer not use the javascript:gs.getUserID()
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2020 09:48 AM
Hi,
gs.getUserID() returns sys_id of the logged in user record.
so, change your condition like below
Trigger-->Incident Record--> Assigned to --is not- javascript:gs.getUserID()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2020 09:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2020 10:10 AM
Yes, for reference fields when we type the javascript:gs.getuserID() then system will show in red color but when we save it, it should accept this.
It's good that you find a way to dot walk to the sys_id field and get it worked. Good job.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2020 11:38 AM
Actually in Flow Designer it clears the field and does not show it in red.
Hence dot to the sys ID worked 🙂
Thank you