Attaches a reply from an administrator or supervisor to an existing feedback item. The reply is stored alongside the original submission and is visible in the feedback management panel.
Endpoint: FEEDBACK service
Action: replyToFeedback
Request
Must be "replyToFeedback".
The ID of the feedback item to reply to.
The type of the feedback item. Either "problem_report" or "contact".
The reply message to attach to the feedback item.
The full name of the administrator or supervisor writing the reply.
Response
Always "success" on success.
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: 'replyToFeedback',
payload: {
itemId: 15,
itemType: 'problem_report',
replyText: 'Gracias por el reporte. Hemos corroborado el color del cable y actualizamos el registro.',
responderName: 'Ana Torres'
}
}),
redirect: 'follow'
});
const result = await response.json();
if (result.status === 'success') {
console.log('Reply saved to feedback item 15');
}