
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2021 10:46 PM
I am trying to look up for inactive users that are still marked active in SNOW and mark them as inactive, and locked out.
I tried doing this workflow but it doesn't look right. In action (3) under Conditions User Id is 1 -> u_inactive records doesnt' allow me to actually specify that it is the user ID in the results from action (1).
Can someone please assist?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2021 09:26 PM
I believe "u_inactive_record" is a staging table and you want to populate the value in sys_user. For that you have to add "look up record" action below the for loop and do a update record action. Like below
Below For
1. use Look up record, select table as sys_user and in condition, "user ID" is "u_inactive_record.user_id"
2. Update user record, active - false and lock out true
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2021 11:27 PM
Hi Joyce s ,
Please refer below link :-
If it is helpful for you or correct , so Please Mark it.
Thanks ,
Akanksha

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2021 11:33 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2021 04:36 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2021 09:26 PM
I believe "u_inactive_record" is a staging table and you want to populate the value in sys_user. For that you have to add "look up record" action below the for loop and do a update record action. Like below
Below For
1. use Look up record, select table as sys_user and in condition, "user ID" is "u_inactive_record.user_id"
2. Update user record, active - false and lock out true

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2021 04:25 PM
Thank you! I ran it successfully in the Test functionality. Do you know how to undo the changes made by the flow designer since its just a test?