- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
Hi,
I want to fetch raw email data before it is inserted in sys_email table. I want to fetch From address of the email before ServiceNow look for user in sys_user table and populate User ID field. How can i achieve this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tuesday
System does this out of box by looking the sys_user table and populating the user ID if email ID of incoming email matches with user record. If you want to add a custom logic, you can create before BR on sys_email table and manipulate the data before creation.
Make sure you do not impact any of the existing functionalities as Inbound Actions and Inbound Flows might be created on incoming email.
If this helped to answer your query, please mark it helpful & accept the solution.
Thanks,
Bhuvan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tuesday
Hi @Anjan 2025
Could you share some details about what you're trying to achieve or use case?
Regards,
Krishnamohan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tuesday
your requirement can be achieved by before insert BR on sys_email table but since it is an OOB table handling inbound/outbound emails it is not recommended at all.
Doing such customisation can break email flows and is not recommended.
Raghav
MVP 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tuesday
System does this out of box by looking the sys_user table and populating the user ID if email ID of incoming email matches with user record. If you want to add a custom logic, you can create before BR on sys_email table and manipulate the data before creation.
Make sure you do not impact any of the existing functionalities as Inbound Actions and Inbound Flows might be created on incoming email.
If this helped to answer your query, please mark it helpful & accept the solution.
Thanks,
Bhuvan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wednesday
Hi Bhuvan,
Thanks, yes I used before businesses rule to modify user details.It worked for me.