Robotic Process Automation (RPA)

 View Only
  • 1.  Email is only sent to the first email address in Cc.

    Posted Fri September 24, 2021 03:33 AM
    Hello everyone,

    I am trying to send an email with more than one person in copy (Cc), but when the email is sent it only picks up the first email address in the list.

    For example, when executing the code in the image, the message only goes to name@outlook.com (To) and name@hotmail.com (Cc), but not to name@gmail.com and name@yahoo.com, although they are also in copy.


    Does anyone know if this is a bug or can it be fixed somehow?

    Thanks.

    ------------------------------
    Yon García Nistal
    Skechers Iberia
    ------------------------------


  • 2.  RE: Email is only sent to the first email address in Cc.

    IBM TechXchange Speaker
    Posted Mon October 04, 2021 03:36 PM
    Hi Yon,
    Another option suggested is to try using a DestinataryList, something like this:

    defVar --name vDestinataryList --type List --innertype String
    insert --index 1 --value "${invEmail}" --collection "${vDestinataryList}"

    If this doesn't work for you, please open a support case for this one. Thanks!




    ------------------------------
    Stephanie Wilkerson
    IBM
    ------------------------------



  • 3.  RE: Email is only sent to the first email address in Cc.

    Posted Fri October 22, 2021 05:14 AM
    Edited by Yon García Nistal Fri October 22, 2021 05:14 AM
    Hi Stephanie,

    I found the solution, but it is quite confusing. Anyway, I post it here in case it helps anyone.

    defVar --name Cc --type List --innertype String --value "[name@hotmail.com;name@gmail.com;name@yahoo.com]"

    The variable Cc has to be a list type, but the email addresses must be separated by semicolons instead of commas. It is confusing, because the lists must be separated with comma and this way, what you are obtaining is a list with a single element, in which there are all the email addresses that you want to place in copy.

    By the way, this doesn't happen with the addressees (To), you can list them separated by comma and the email is sent to all of them.

    Regards,




    ------------------------------
    Yon García Nistal
    Skechers Iberia
    ------------------------------



  • 4.  RE: Email is only sent to the first email address in Cc.

    IBM TechXchange Speaker
    Posted Fri October 22, 2021 11:35 AM
    Thanks Yon for coming back and posting the solution!

    That is super helpful for anyone that comes next and is looking to do the same thing-- we will also send it to the docs team. ​​


    ------------------------------
    Stephanie Wilkerson
    IBM
    ------------------------------