- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2022 09:16 PM
Hi, All.
I would like to use Flow Designer to fulfill the following requirements. Do you have any advice?
Requirements :
Every day, once a day, if the Last_login field in the User [sys_user] table contains today's date, I would like to email the user who is the instance administrator with the login record information for the day.
This requirement seems feasible, but is there any good idea?
Thank you
Solved! Go to Solution.
- Labels:
-
Script Debugger
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2022 11:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2022 01:02 AM
Hi,
As a requirement, when the last login field is updated in Flow Designer, we want to be notified on a daily basis, so we do not want to be notified repeatedly during the day.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2022 01:51 AM
Hi Sato,
It would be easier to create a Report and then set up Scheduled Reports to send the report in email.
- Create a report
- From Navigator, select "Reports" > "Create New"
- Enter as follows and click on the "Next" button
Report name: Users logged in Today
Source type: Table
Table: User [sys_user] - Select "List" as report type
- Set filter condition as follows.
"Last login" "on" "Today"
It may be better to filter by "Yesterday" depending on when the reports is to be generated. - Click on the "Run" button to create a report. If alright, click on the "Save" button.
- Create a Scheduled Report
- From Navigator, select "Reports" > "Scheduled Reports"
- Click on the "New" button
- Enter necessary information and click on the "Submit" button.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2022 03:33 AM
Hi,
Certainly it works easily and is perfect for performance.
However, as a requirement this time, in Flow Designer, the instance administrator must be notified to the user who logs in to the instance every day (holds admin authority).
I haven't dared to mention permissions, but from an administrative point of view of SserviceNow, implementing in Flow Designer is the only approach to customers.
If possible, it would be greatly appreciated if you could provide information on that approach in Flow Designer.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2022 03:45 AM
> the instance administrator must be notified to the user who logs in to the instance every day (holds admin authority).
I'm not understanding. The statement just implies sending an email to an instance administrator. Does the question imply only listing and emailing instance administrator's login activities? This can also be setup in a filter.
ServiceNow allows users to define dynamic filters that can be used as filter conditions. Dynamic filters are capable of calling Script Includes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2022 04:37 AM
Hi,
In instance management, it is natural to manage users, but it is also necessary to manage users who have Admin privileges, which are privileged users.
インスタンス管理において、ユーザー管理を行うのは当然ですが、特権ユーザーであるAdmin権限を保持しているユーザーの管理も怠ることは出来ません。
Therefore, if a user with Admin privileges logs in to the instance that day, they must notify the responsible person of the logged-in user information for that day, because they just want to implement it in Flow Designer.
したがって、その日にAdmin権限を持つユーザーがインスタンスにログインした場合、その日の分のログインしたユーザー情報を責任者へ通達しなければなりません、それをただFlow Designerで実装したいだけなのでです。