Create a record on custom table using inbound action in servicenow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2025 12:36 AM - edited 06-10-2025 01:36 AM
Hi,
Please me with below requirement.
When ServiceNow instance receives email from abc@email.com
There should be a record created on custom table (add_account).
If the email body contains below details
User email : <Email address>
Admin Account Name : <ms_>
Through inbound action this should be inserted in custom table(add_account).
Name and Associated user field value should be as below.
Name : Admin Account Name : <ms_>
Associated user : User email : <Email address>
Kindly help me with script to be updated in Inbound action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2025 12:51 AM
Remember PDIs don't support sending and receiving email.
your requirement is easy and you can directly implement this in your customer instance.
You can check lot of OOTB inbound email actions of type New which does the same.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2025 01:00 AM
In case if it is not PDI. How we can do this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2025 01:36 AM
I already informed you can check any OOTB inbound email actions on incident etc table and use similar code.
another low-code way is to use Inbound flows
check these links
How to read body text in Inbound EMAIL Flow
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2025 12:58 AM
Hi @Akshata5
Inbound actions or any tasks based on email in SN will not work in PDI due to security issues, as the email account has been removed. However, if you still want to learn, please follow this link to configure email in PDI.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************