Push managers of users in list collector to email notification

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-07-2023 07:51 AM
Thanks for all the community help in getting me to this point, but I have one final issue to overcome.
In our catalog item, users are added to a list collector variable. For each selected user, we want to identify their manager and email them individually (so if 10 users are selected, 10 manager emails will be sent). Using Create Event in the workflow and an email script we can identify the sys_id of each manager, but when we try and pass this into a notification the email error string says "Email contains no recipients, send ignored"
Email script:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-07-2023 10:50 AM
I think you are not setting to whom to sent , you are getting value for email id use below code in mail script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-07-2023 10:51 AM
email.addAddress("to","email_address_of_the_user","Name_of_ther_user");