QuincyAdam
7 years agoQrew Cadet
Extract Templated Text From Email Body
I have QuickBase Sync setup to add new leads from incoming emails from vendors. The vendor specific emails are templated, however, I've been unable to extract specific text from a string into a field. The email content is dumped into a field called Body.
For example, an email template may look like the following. The vendor cannot add delimiters for us, so this is what we're provided with:
STUDY NUMBER 555555
SITE LOCATION Paoli PA
For example, an email template may look like the following. The vendor cannot add delimiters for us, so this is what we're provided with:
STUDY NUMBER 555555
SITE LOCATION Paoli PA
PROTOCOL Asthma
NAME Jon Doe
MEDIA TYPE Facebook
MEDIA NAME Test
MOBILE PHONE 5555555555
I tried using this code, but it only outputs 5555555555:
Left(Right([Body],"STUDY NUMBER"),"SITE LOCATION")
Is there any way of grabbing values between "STUDY NUMBER" and "SITE LOCATION", and "SITE LOCATION" and "PROTOCOL", etc...?