Variables from Inbound Action

Andrii
Kilo Guru

Hi, I'm working on Inbound Action to populate specific fields on Incident record from inbound email.

Wiki here Inbound Email Actions - ServiceNow Wiki says that such pair Foo:bar from email may be accessed like this: email.body.foo

But does not matter how much I try - I can not get it's value - i always get "underfined"

Need help!

P.S. For now I use workaround - parsing email body with JavaScript String methods but a bit frustrated that can not use functionality that is written on Wiki.

1 ACCEPTED SOLUTION

Andrii
Kilo Guru

I found the answer !!!



Pairs like parameter:value only works when email has text format !!! Otherwise it is necessary to use Regex or parsing email body with JavaScript String methods.


View solution in original post

7 REPLIES 7

Hi Mike,


I think you mean:


1. The Incident caller_id is set to the the user who sent the the email.


rather than replied to the email.




Best Regards



Tony


Andrii
Kilo Guru

I found the answer !!!



Pairs like parameter:value only works when email has text format !!! Otherwise it is necessary to use Regex or parsing email body with JavaScript String methods.


Even I am not having the similar issue.


When an email is sent from an alert system the parameter is not parsed out.


But when I copy and sent the same text from my email address it works.


Could you say how to achieve your solution?