Discussion created by DavidB3 on Jul 4, 2019
Latest reply on Jul 8, 2019 by DavidB3

I have the following function code which is in the initial value part of a field to return the first person from a library to invite to a meeting.


 return ([[@Web.GetFirstValueForQuery('Attendees', '<Query><Where><IsNotNull><FieldRef Name="ID" /></IsNotNull></Where></Query>', 'Attendee')]]).get_email();


This works ok and the first person is inserted into the field, however I need to return more than one person and when i try to use @WebGetValuesForQuery, i get the following error.


Failed eval expression: Error occurred on evaluating expression "{ return ([[@Web.GetValuesForQuery('Attendees', '', 'Attendee')]]).get_email(); }"TypeError: arguments[0].get_email is not a function


Hope this is clear.


Thank you.