Inbound script for change request

sree42
Tera Contributor

Hello Everyone,

 

I have one requirement to create inbound email to create a change request of standard type having below Planned start date and planned end date:

1. If subject contains 'abc' then dates are : 3rd Tuesday Every Month 10 -5 pm

2. If subject contains 'def' then dates are : 4th Tuesday Every Month 10 -5 pm

3. If subject contains 'ghd' then dates are : 1stTuesday Every Month 10 -5 pm

4. If subject contains 'xyz' then dates are : 1st Wednesday Every Month 10 -5 pm

5. If subject contains 'qwe' then dates are :1st Thursday Every Month 10 -5 pm

 

I am not able to get this script. Please anyone help me on this?

 

 

10 REPLIES 10

Amit Verma
Kilo Patron
Kilo Patron

Hi @sree42 

 

Instead of Inbound Email Action, you can use Flow Designer to design a flow which could trigger on reception of email. You can add trigger conditions to make it trigger for particular emails only. Once triggered, you can make use of if conditional logic to check the subject line and make relevant decision accordingly.

 

Let me know if you need help in designing the flow and I will be happy to assist.

 

Thanks & Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.

Thanks for this. How can we get the script for getting 3rd Tuesday Every Month 10 -5 pm as planned start date and end date?

Hi @Neeraja2 

 

Check the script on the below post. It might be helpful to you :

https://www.servicenow.com/community/developer-forum/how-to-schedule-incident-every-third-tuesday-of...

 

Thanks & Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.

Thanks