Create a record on custom table using inbound action in servicenow

Akshata5
Tera Guru

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).

Akshata5_0-1749540837471.png

 

 

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

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@Akshata5 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

In case if it is not PDI. How we can do this?

@Akshata5 

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

Creating Inbound Email Flows 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Dr Atul G- LNG
Tera Patron
Tera Patron

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.

 

https://www.servicenow.com/community/developer-forum/solution-how-to-configure-email-account-in-serv...

*************************************************************************************************************
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]

****************************************************************************************************************