Errror Parsing Email Body with Parse email body action from Community

TylerJ333505898
Tera Contributor

Good morning 

 

I recently tried to parse the email of a incoming email in a flow. The issue im running into is the variable keeps coming back not found. The email body itself has alot of spaces inside of it causing the issues im running into to. 

 

TylerJ333505898_0-1734530226871.png

 

I tried different formats listed below with no luck 

TylerJ333505898_1-1734530283296.png

 

After a few test runs it comes back not found

TylerJ333505898_2-1734530316624.png

 

The body of the email does populate the description in this format 

Non-Market Driven Voluntary Seperation

John Smith

Person Number 603677

Reason Non-Market Driven Resignation: Commuting/ Traffic

Effective 1/10/25

Termination Details

Name

John Smith

Legal Employer

T Corporation

Notification Date

12/17/24

Termination Date

1/10/25

Revoke User Access

After termination

Recommended for Rehire

Yes

 

any pointers what im doing wrong? 

1 ACCEPTED SOLUTION

Mark Manders
Mega Patron

Then you don't have anything to make the distinction between the key and the value. This really only works if you can make the distinction. Have the system sending the email create a different template or provide the user(s)group(s) using this email to create tickets with a different template. 

If you check the code in the action, you will see that you need to have something to decide which is which. A space can work, but only if you get two words per line. 


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

View solution in original post

3 REPLIES 3

Mark Manders
Mega Patron

I think you need to update the sending party. This will only work if you have something in place like "Name: John Smith", so the system knows that before ":" it is having the key and behind it the value.

This is just text and makes it very hard to get the pairs from. 


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Is there a way i can still achieve this in flow or is this not possible. I do have the subject i can use but i dont have any key for the pairs Both body and subject are just a string

Mark Manders
Mega Patron

Then you don't have anything to make the distinction between the key and the value. This really only works if you can make the distinction. Have the system sending the email create a different template or provide the user(s)group(s) using this email to create tickets with a different template. 

If you check the code in the action, you will see that you need to have something to decide which is which. A space can work, but only if you get two words per line. 


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark