How to create a request when an email is sent to a specific email address.

Vijay Kumar4
Mega Guru

I need to create a request when an email is sent to a specific email address. What configurations are required for this?

Currently, my org has an existing email-to-incident setup, where sending an email to vjdev@service-now.com automatically creates an incident. However, I want to create a request instead when an email is sent to vjtest@service-now.com.

Since incident creation is handled by an inbuilt Email Action, how can I configure the system to create a request specifically for emails sent to vjtest@service-now.com?

Note: Please do not change anything with the existing vjdev@service-now.com email rule. It will continue to work as it is.

12 REPLIES 12

Rohit  Singh
Mega Sage

Hi @Vijay Kumar4 ,

 

You can refer this details video.

 

Service Catalog Item from Email  

 

If my response helped, please hit the Thumb Icon and accept the solution so that it benefits future readers.

Regards,
Rohit

Ankur Bawiskar
Tera Patron
Tera Patron

@Vijay Kumar4 

you can have 1 more inbound action on REQ table and which checks if email came from above email address

then use Cart API to submit REQ and RITM

try{

	var cartId = GlideGuid.generate(null);
	var cart = new Cart(cartId);
	//add your requested item to the cart by sys_id of the catalog item
	var item = cart.addItem('0336c34407d0d010540bf2508c1ed096', 1);

	//fill in the variables on the request item form
	cart.setVariable(item, "asset", "00a96c0d3790200044e0bfc8bcbe5dc3");
	cart.setVariable(item, "multiple_choice", "Phoenix");
	var rc = cart.placeOrder();
	gs.info(rc.number);

}
catch(ex){
	gs.info(ex);
}

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

@Ankur Bawiskar Thanks for your response. I just want to create a request with only the Assignment Group and Priority. Also, for incident creation, I haven't added any conditions based on the email address. Are there any additional configurations needed to create the request similar to the incident?

VijayKumar4_0-1743505146787.png



VijayKumar4_1-1743505171211.png

Do I need to configure an 'Email Account' for this? Currently, there is already an 'Email Account' set up, which creates an incident when an email is sent to a specific address. Do I need similar configurations for request creation since we're using a new email address for it?

VijayKumar4_2-1743505772802.png

 



@Vijay Kumar4 

you want INC and REQ both to be created when an email comes from that email.

you only require a new inbound action on REQ table and have script there and check if email came from that email address

Nothing to do with the SMTP account

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