
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2019 07:38 PM
Hi All
I'm trying to use flow designer and i'm not sure how i'm supposed to pass variables from flow designer into a workflow
Specifically i'm trying to use a trigger condition on the sys_user table to the effect of
where the user is making a change to their own record, and it's a specific change, call a workflow. The workflow will need some information about the user passed to it from flow designer so it can do it's thing.
ideally i'd like to pass the current user records 'username' variable to the workflow, but even sys_id would be fine. just something so i can easily look up the user record in the workflow in order for it to do it's thing.
The servicenow documentation on the 'call a workflow' flow action is not particularly helpful.
-- edit --
ok after hitting save (duh) i get a new option with 'current' in the call a workflow activity. If i drag the current user data record in there, can i then use something like "current.sys_id" in the workflow to do a glide lookup on the user?
Solved! Go to Solution.
- Labels:
-
flow designer

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2019 09:50 PM
found the solution to my own problem, it works exactly as described above in case anyone is wondering.
you just use current.(whatever) in your workflow and go from there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-25-2021 02:53 PM
i'm trying to call a workflow in flow designer, after saving this step in the flow there is no "current" option for selecting variables to pass, only the wait checkbox is there. Any ideas?