Match Email Record to Variable in Workflow Studio

dowson
Tera Expert

I'm working on a workflow to update the caller of an incident if the email address they used to contact us matches the secondary email address on their profile.

I'm running into an issue with the Email Record field in the "Get email header" action. I want to use the text of the incident's short description to match an email record, but the Email Record appears to be looking for a sysid and not a string.

1 ACCEPTED SOLUTION

J Siva
Tera Sage

Hi @dowson 

It's expecting the "Email record object".

So it won't accept any other data types.

So as a first step, lookup the email record to get the latest email using the incident (trigger) reference.

Then pass that email as an input to the "Get email Header" action.

It'll work.

View solution in original post

2 REPLIES 2

J Siva
Tera Sage

Hi @dowson 

It's expecting the "Email record object".

So it won't accept any other data types.

So as a first step, lookup the email record to get the latest email using the incident (trigger) reference.

Then pass that email as an input to the "Get email Header" action.

It'll work.

SupriyaWaghmode
Kilo Sage

Hello Dowson,

 

These so defined activity to get the email details. 

Below step you need to perform.

1.Write a script to get email record(Glide record for sys_email table) details using run script and store the value  of email header in the workflow_scractpad.

2.Utilized the email header action value in the require activity.

 

Thanks & Regards ,

Supriya Waghmode |ServiceNow Consultant