- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2024 03:45 AM
Hi all,
i am having requirement to resend emails for approvals using ui action
i have a script i need suggestion
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2024 05:25 AM
Hi @shaik23
If your issue has been solved please mark my answer as Accepted Solution.
You cant see updated email in email logs because you might be seraching with the wrong query. please open sys_email.LIST and Target as sys_id of the approval record
Regards,
Piyush Sain

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2024 03:55 AM
@shaik23 Instead of querying the sys_email table, can't you re-trigger the email using gs.eventQueue('event_name',current,'param1','param2'); ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2024 04:02 AM
@Sandeep Rajput It is recommended method ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2024 04:05 AM
Yes, after all events are used for triggering emails.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2024 04:03 AM - edited 01-10-2024 04:05 AM
Hi @shaik23
By looking at your script the code will just pull any email that is on the table, it can be another email which is not for approval. If the current table is approval table then it works but other than that you need to add more query to find correct email.
I will suggest you to create a new copy of the email as it will be logged in the system that the email is sent multiple times or you can use event queue to trigger another email
Regards,
Piyush Sain