findResponsesByTarget()
Returns form responses for a specific form where the target (the person the form is about) matches a given person, optionally filtered by date range.
Useful when you want to retrieve all responses written about a particular employee — for example, all manager reviews submitted about a specific person.
Syntax
findResponsesByTarget(form, target[, from][, until])
Parameters
Return Type
ListList <FormResponseFormResponse>
Examples
findResponsesByTarget('360 Feedback', person, '-365d').count()
Counts the number of 360 Feedback responses submitted about the current person in the past year.
findResponsesByTarget('Manager Review', person, intervalFrom, intervalUntil).mean{answerValue.reviewScore}
In a Dashboard, returns the average manager review score for the current person over the dashboard's time interval.
