Email body values in flow designer

Karanpreet
Tera Contributor

Hi guys , 

 

 I am trying to extract value from email body which contains certain data as Name: Value pair .

 

in inbound actions we can get the values by email.body.name. However when i am trying to create the inbound action flow . when i create a trigger for email & then in create record action try to get the value from script .

 

i tried fd_data.trigger.email.body.name

 

Screenshot 2023-06-16 163614.png

 

however this does not works & flow gives an error.below is the screenshot for template of email body

 

Screenshot 2023-06-16 163754.png

 

Can someone guide me how can i dot walk in the email body in case of flow deisgners.

2 REPLIES 2

BartekM
Tera Contributor

Hello, I got some similar requirement. Did you find a way to work with key:value pairs in the flow designer ?

BartekM
Tera Contributor

just found that if anybody ever needs a solution for this

custom built email flow action to parse key:value pairs

https://developer.servicenow.com/connect.do#!/share/contents/8408077_parse_email_flow_action?v=2.21&...

 

and a community page with the solution

https://www.servicenow.com/community/itsm-articles/how-to-read-body-text-in-inbound-email-flow/ta-p/...

 

Good luck!