Skip to main content

Search

Email all people in a sub-list

Answered

Comments

4 comments

  • Matthias_Walter

    Hi Sandra Huntley,

    you can get those emails by accessing the sublist via the skybow Expression Builder. Use the following code whether in the to, cc or bcc fields of a send email action:

    var emails = [];
    var getEmail = function(obj)
    {
      emails.push(obj[0].email);
    };
    [[@SubLists.Recipients.Recipient]].forEach(getEmail);
    return emails.join(';');

    The sublist needs to be integrated into the form via skybow rich forms to get it available in the context objects.

     

    Thanks Pius Willi for helping me out on JavaScripting

     

    hope this helps!

    BR Matthias

    0
  • sangel40

    Hi,

    When I look at the information stored under a person/group in the primary list I can see that there is an email address available to select, but not on a sublist.

    Is this correct?

     

    When I inserted this code and tried to update a column that I stored on the primary list, the instance data couldn't be found. What extra information could I provide that would resolve this issue?

     

    Thanks

    Sandy

    0
  • sangel40

    This is the error that I receive:

     

     

     

    Please advise.......

    0
  • AndrewBerezovskyy2

    Hello Sandra Huntley

     

    Please examine my answer here .

    You must use  also some FormLoadAction and this script which Matthias prepared together if you want get  emails list .

     

    Kind Regards
    Andriy Berezovsky

    0

Please sign in to leave a comment.