Need to highlight HR cases created from certain emails via inbound action

Arka Banerjee
Kilo Guru

Hi All,

 

ArkaBanerjee_0-1745250194321.png

 

Above is a screenshot of a HR case created from an Inbound email action.

 

I need to display an error message at the top, above the info message that you see in the screenshot, whenever the sender's email domain(i.e. the person who sent the email via which the case got created in SNOW) isn't among the whitelisted ones(@abc.com ,  @xyz.com for egs), mentioning something like 'This email isn't from a trusted domain. Kindly proceed with caution.'

 

Can someone please help me achieve this. Thanks!

 

@Ankur Bawiskar 

1 ACCEPTED SOLUTION

Hi Ankur,

 

I have created a custom field for the form, populated the sender email from the inbound action by setting the field's current value with email.origemail, and then used your script, it worked as expected.

View solution in original post

10 REPLIES 10

@Arka Banerjee 

I believe I answered your original question and I provided a working solution for the same.

Now since your requirement has changed the discussion can continue on same thread

but please mark my response as correct as it helped and worked for you.

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

@Arka Banerjee 

so who is the sys_created_by for that HR case since this HR case is getting created via inbound email?

you can have logic built around that field

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

Hi Ankur,

 

I have created a custom field for the form, populated the sender email from the inbound action by setting the field's current value with email.origemail, and then used your script, it worked as expected.

@Arka Banerjee 

I believe I have answered your question.

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

@Arka Banerjee 

Would you mind closing your question by marking appropriate response as correct?

Members have invested their time and efforts in helping you.

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