AnsweredAssumed Answered

Extract text from email

Question asked by nigel.hertz on Apr 13, 2016
Latest reply on Apr 14, 2016 by emha

Hi,

 

I'm building a helpdesk system and have most of it working. What I'm having issues with is getting the content out of a 'reply' email that goes into the system. Currently, the full body of the email gets inserted. What I want to do is just get the most recent part of it.

 

I've tried using a regex action, but it isn't working - it still puts the entire email in. I use 'split' with an index of 0; using 'extract' for some reason doesn't put anything in the variable. The details are:

 

Pattern:    ^(.*?\s*)From: ~Service

Operation:    Split

Store results in:   collBody

Sample text:  

 

Plain text try?

 

From: ~Service Desk

Sent: 12 April 2016 15:36

 

If I use an online regex validator, it works the way I expect it to, but it doesn't work in the workflow. Interestingly, dumping the colBody value into the history list, it has a bunch of html code which I assume is part of what is causing the issue.

 

I'm sure it's something small that I'm missing, but I have no idea what.

Outcomes