Skip to main content

Search

@Web.GetValuesForQuery

Comments

2 comments

  • Matthias Walter

    Hi David Beckinsale,

    using the GetValuesForQuery function will return an array of objects. Therefore you would need to loop through them like this:

    var attendees = "";
    var attendeesObjs = [[@Web.GetValuesForQuery('Attendees', '<Where></Where>', 'Attendee')]];
    attendeesObjs.forEach(function (attendee){
      if(attendee.get_email()!=""){
        attendees += attendee.get_email()+";";
      }
    });

    return attendees;

     

    Kind regards

    Matthias

    0
  • David Beckinsale

    Hi Matthias,

     

    Works perfectly, thank you for your help as always.

    0

Please sign in to leave a comment.