Hi Paul,
I am fairly new to architect and very new to loops. I tried to run with your idea above about looping thru the to field, to find multiple pure cloud email address's with the action of if it does equal a specific email address transfer to a queue, then the thought was to loop again and if it finds another one, transfer to another queue.
Problems: Transfer to ACD terminates in end of flow. So my thinking is it then would stop looping. Since it is still just one interaction, this makes sense, it would not have another interaction to send the other queue?
Thoughts?
Thanks in advance.
------------------------------
John Treglia
Behr Process Corporation
------------------------------
Original Message:
Sent: 05-14-2021 12:23
From: Paul Dittrich
Subject: Email to multiple Genesys Cloud Email addresses
Hi Martin,
I'm not sure how you are routing the emails, but I've run into this in the past.
If you have your emails going to an Email Flow in Architect, Genesys Cloud will create a collection of email addresses in the variable Email.message.to.
So you may need to do a loop to go through all the email addresses eg Loops: Count(Email.message.to) index: State.i and then look in Email.message.to[State.i] to see if they've emailed a legit purecloud email or not. They could be emailing someone else in the To field. Depending on which Genesys Cloud email address matches you could send the message to a different queue, and then loop to handle the next address.
The same holds true for SMS messages, you will get a collection of ANI's that you should loop through.