That is where I am stuck. If I use the Find tool on a string, I can use a variable or a hard coded string. But if I use the list of email recipients, the value I am looking for can only be a variable. So I need to get the variable set with what I want to search for before that step. But I can't figure out how to do that.
The Get Recipient Info tool step needs an Email recipient variable for Input but the email recipients are in a List of Email Recipients created by the Open Message by Cookie step.
I guess I need to GetCount of the lerToRecipients variable, then loop through using GetAt that many times and do the compare. Clunky but it may be the only way.
GetAt seems the only way to assign a value to an Email Recipient variable.
Thanks for the ideas
------------------------------
Rich Hawley
American Customer Care, Inc
------------------------------
Original Message:
Sent: 11-07-2019 09:43
From: Mark Tatera
Subject: create email recipient variable
Rich,
I have never worked with a list of email recipients but it looks like your options are really restricted. I was able to use the find tool step to do a find for an email recipient data type in the list of email recipients but I can't seem to figure out how to get the email recipient value into the email recipient variable. There is a tool step called get recipient info which outputs a string containing the email address.
This is pretty clunky but you should be able to create a loop using the get at tool step and get recipient info tool step to compare each recipient in the list against the email address you are looking for.
There is probably a cleaner/easier way to do this. You may want to debug/open up the attendant email handlers and poke around a bit to see what you can find.
Thanks,
------------------------------
Mark Tatera
ConvergeOne
Opinions are my own and not the views of my employer. Any suggestions or programming changes I suggest come with no warranty and should be tried at your own risk. If my comment helped you or solved your problem please consider marking my comment as best answer.
Original Message:
Sent: 11-06-2019 14:33
From: Rich Hawley
Subject: create email recipient variable
I feel like a handler newb asking this question.
I am trying to look at the lerToRecipient variable of an incoming email interaction and search it for a specific email address. I was going to use the Find tool to do this but it needs the email address in the Value field to be a Email Recipient variable type. I can't for the life of me figure out how to create this variable.
I do not see a string to er conversion for example.
How do I create an email recipient variable?
#Handlers
------------------------------
..Rich
------------------------------