- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello,
I need to trigger an email when a user with admin access login to prod. I wrote a After BR on Insert and update on User Role[sys_user_has_role] table-> created a event and a notification. But the BR is not executing and event is not triggering.
Is there any other approach or better way to do it?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello @swathi55 ,
The reason your current approach isn't working is that the sys_user_has_role table only tracks changes to a user's assigned roles, not when they actually log into the system.
You can use this approach :
1) Create a Script Action : Navigate to System Policy > Events > Script Actions and click New.
2) Create your Custom Event : Navigate to System Policy > Events > Registry and click New.
3) Create Notification : Navigate to System Notification > Email > Notifications.
- Table : User (sys_user)
- Send when: Event is fired
- Event name: <event_name>
So as a result, whenever the user logged in user will get the notification :
If my response helped mark as helpful and accept the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello @swathi55 ,
You can try Approach suggested by @yashkamde its working fine . I tried that in my pdi and it works .
If this helps you then mark it as helpful and accept as solution .
Regards,
Aditya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Thank you..