Autopopulate logged in user's email
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2024 12:39 AM
Hi,
I am trying to autopopulate the logged in user's email using business rule. It's not working. Kindly help.
(function executeRule(current, previous /*null when async*/ ) {
current.email = gs.getUser().email;
})(current, previous);
Regards
Suman P.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2024 12:51 AM
Hi @Community Alums ,
getEmail() | Returns the email address of the currently logged-in user. | var email = gs.getUser().getEmail(); |
If my response helped, please mark it as the accepted solution ✅ and give a thumbs up👍.
Thanks,
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2024 12:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2024 01:00 AM
Hi @Community Alums ,
Check if loggedin user have valid email.
If my response helped, please mark it as the accepted solution ✅ and give a thumbs up👍.
Thanks,
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2024 01:11 AM
Hi @Community Alums ,
for me it’s working as expected
If my response helped, please mark it as the accepted solution ✅ and give a thumbs up👍.
Thanks,
Anand