Trigger a email to the catalog item owner when job runs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2023 04:36 AM
Hi All,
I need to trigger a email notification to the catalog item owner when the schedule job runs, for this I have created the event registry, Notification and email script. It's working as expected but facing one issue like body of the email Hi contains the static person(one specific name is displaying for all the email body) in all the email notification but I need to send the email to catalog item owner addressing like Hi {catalog item owner name need to display here}
Email body contains:
Hi ${u_cat_item_owner},
You have received this email because you are the owner of the catalog item ${mail_script:Catalog_item_owner_email_script}
Please review the form for any of the below points.
Schedule Job,
If the catalog owner has owning multiple catalog item then need to send single email the owner, this script is working fine
Here email will trigger to specific catalog item owner but
Body of the email like Hi part contains the static person for all the email notifications
like below
Email Script:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2023 04:45 AM
Hi @vinuth v
Did you check if the owner of all the catalog items are different and not the same person named "Richard Kelley"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2023 04:47 AM - edited 09-08-2023 05:30 AM
Hi @msd93
All catalog item owners are different but for all notifications "Richard Kelly" is coming on the email body.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2023 07:04 AM
Hi @vinuth v
Please try the below code in scheduled script:
Below is scheduled script:
Below is notification which triggers on event,
Below is the notification triggered.
Below are the notifications received, since i had only 3 catalog owners where one had 5 items and the other 1 item each.
System admin is owner of 5 catalog items, below email is sent
Abel is owner of 1 catalog item and below is email sent:
Make sure all the owners have email in their user profile. I hope this helps you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 02:06 PM
Hi @msd93 ,
I tried same for my requirements it works ok but having some issues,
There are 3 catalog item Test user owns, I checked logs and url is returning 3 different links BUT in notification only first one is coming correctly and for other 2, sys_id is blank. and Catalog item is are not coming in line even after using "\n"
Email Script: