- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2024 12:03 AM
Hi
I am working on a flow in which I have to give condition where the condition is like we have to fetch the inactive users in the last month from the user table. So ,how to set this condition in the flow?
And also, I would like to know when a field(active) is being updated and when the updated info of the field is being recorded?
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2024 12:15 AM
user table is not audited so you won't know when the field got updated to active false
So you might have to use some custom logic.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2024 12:38 AM
You will need to activate audit on the user table. I am not sure why this isn't activated by default, since every client at some time comes with a question about 'what happened to this user', but for your requirement, you will need it.
And, depending on why you need this information, it could be helpful to put a field on the user table that sets the 'inactivation date/time'. That really makes it easy to get those users.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2024 02:08 AM
Activating audit on the user table will allow to record all changes on the user record (just like you have on the incident record: who changed what when).
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2024 12:15 AM
user table is not audited so you won't know when the field got updated to active false
So you might have to use some custom logic.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2024 01:52 AM
Hi @Ankur Bawiskar
Actually, what does this audit will do?
Is this the audit you are saying ?
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2024 01:57 AM
Hi @Ankur Bawiskar ,
Actually, what does this audit will do?
Is this the audit you are saying ?
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2024 12:38 AM
You will need to activate audit on the user table. I am not sure why this isn't activated by default, since every client at some time comes with a question about 'what happened to this user', but for your requirement, you will need it.
And, depending on why you need this information, it could be helpful to put a field on the user table that sets the 'inactivation date/time'. That really makes it easy to get those users.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark