Skip to main content
Returns all feedback items stored in the system, including problem reports and contact form submissions. This action is intended for use by supervisors and administrators in the feedback management panel. Endpoint: FEEDBACK service Action: getFeedbackItems
This action is role-restricted. Only users with Supervisor or Jefe roles should call this endpoint.

Request

No payload required.
action
string
required
Must be "getFeedbackItems".

Response

status
string
required
Always "success" on success.
data
array
Array of feedback item objects.

Example

const FEEDBACK_ENDPOINT = 'https://script.google.com/macros/s/AKfycbwHTr8MSFuNio8rky8tflcErlRlAb1YSH2jmszZp77SM5e_-SVMO2pBU1UmeGOH1Aig/exec';

const response = await fetch(FEEDBACK_ENDPOINT, {
  method: 'POST',
  headers: { 'Content-Type': 'text/plain' },
  body: JSON.stringify({ action: 'getFeedbackItems', payload: {} }),
  redirect: 'follow'
});

const result = await response.json();
if (result.status === 'success') {
  const unresolved = result.data.filter(item => !item.isResolved);
  console.log(`${unresolved.length} unresolved feedback items`);

  const problemReports = result.data.filter(item => item.type === 'problem_report');
  const contactMessages = result.data.filter(item => item.type === 'contact');
}

Build docs developers (and LLMs) love