findResponsesByAssessment()
Returns form responses for a specific form submitted within a specific assessment cycle, optionally filtered by date range.
This is useful when you need to scope responses to a particular review or survey cycle, rather than pulling all responses across all time.
Syntax
findResponsesByAssessment(form, assessment[, from][, until])
Parameters
Return Type
ListList <FormResponseFormResponse>
Examples
findResponsesByAssessment('Manager Review', 'Q3 2024 Performance Review').count()
Counts the total number of manager review submissions within the Q3 2024 performance cycle.
findResponsesByAssessment('Manager Review', 'Q3 2024 Performance Review').mean{answerValue.reviewScore}
Returns the average review score across all submissions in the specified assessment cycle.
findResponsesByAssessment('Self Review', 'Q3 2024 Performance Review').groupBy{target}.count()
In a Dashboard, shows how many self-reviews were submitted per person in the Q3 2024 cycle.
