How do i set an inbound action condition for FROM email address

reachjake
Kilo Contributor

How do I set an inbound action condition for FROM email address. The email belongs to an external service and not a servicenow user. When i put something in the From field of the inbound action I get an "invalid reference" error as that field expects a user

What is the best way to do this?

Thank you

7 REPLIES 7

Allen Andreas
Administrator
Administrator

Hi,

You can use script in condition field of the inbound action such as:

email.from == 'email@example.com'

This would then only execute this inbound action if the email was from email@example.com.

Also, you can checkout some of the other inbound action email object variables you have access to via documentation as seen here: https://docs.servicenow.com/bundle/quebec-servicenow-platform/page/administer/notification/reference...

And more examples of inbound action settings, like conditions, seen here: https://docs.servicenow.com/bundle/quebec-servicenow-platform/page/administer/notification/reference...

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hi Allen,

Very comprehensive reply mate. I would like to talk to you about some ServiceNow work I would like performed, how can I best contact you?

Thank you

Cheers Jake

Hi,

I'm glad my reply was Helpful.

If it also guided you Correctly, please also mark the reply as Correct.

Thanks and take care! 🙂


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hi @reachjake 

I happened to come back across your question posted and wanted to see now that it's been about a year and a half (haha), did my initial reply above help answer your question?

 

If so, please mark it as "Accept Solution". Thanks and take care!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!