Skip to main content
Once this morning’s audit has finished, read the findings it found for the first time and post each one to your team’s chat room. Keep the ids you have posted, so a retry or a second run never posts the same finding twice.

The request

firstFound:2026-12-01 matches findings a check first reported that morning; use today’s date in the tenant’s time zone. state:open leaves out any that were already fixed. Add audit:month-close or priority:P0,P1 to narrow it. See List open findings. Each node’s next is a Darpan CLI command, such as darpan findings show F-20761, that prints the whole finding. Put it in the message so anyone with the CLI can paste it.

Post one message

Slack and Google Chat incoming webhooks both take a JSON body with a text field:
Create the webhook in Slack (an app with Incoming Webhooks) or in a Google Chat space (Apps & integrations › Webhooks). Treat its URL as a secret: anyone who has it can post to the room.

A complete script

Run it after Wait for the morning audit exits 0. It reads every page, skips ids it has already posted, and records each id as soon as its message is sent.
  • Dedupe by id. A finding keeps its id from the morning it is found until it is fixed. The script writes each id after its message is sent, so a run that stops halfway picks up where it left off.
  • A busy morning. Dozens of messages bury a room. To post one line instead, read auditReport { summary { newToday } } and post the count with a link to the audit in Darpan.
  • Only some findings. Add priority:P0,P1 to the query to post the urgent ones, and leave the rest to Sync findings every day.