Zum Inhalt springen
NEUMarktplatz und dein Team: Verkaufe, was du baust, und bekomm Pläne und Änderungen, die getestet sind, bevor du sie siehst. Neuigkeiten ansehen

Bibliothek / Warnungen & Benachrichtigungen

Warnungen & Benachrichtigungen

Latest ServiceNow-Incidents als Block-Kit-Nachrichten an Slack senden

Wird durch einen Webhook-Aufruf ausgelöst, ruft ServiceNow-Incidents ab, sortiert sie vom neuesten zum ältesten, behält die neuesten fünf und formatiert sie als Slack-Block-Kit-Nachrichten.

Was sie bewirkt

![n8n]({{ $env.WEBHOOK_URL }} ## Sort and format Results for block kit This section begins by organizing the incident data retrieved from ServiceNow. The Sort by Most Recent node arranges the incidents in descending order, ensuring that the latest ones are processed first. Next, the Retain First 5 Incidents node limits the output to the five most recent incidents for clarity and focus. The Loop Over Items node iterates through each incident, allowing the workflow to process them individually. During each loop, the Format Incident Details node structures the details of each incident into a format compatible with Slack’s Block Kit, ensuring readability and a professional appearance. Once all incidents are formatted, the Concatenate Incident Details node aggregates the results into a single, cohesive message. Finally, the Format Slack Message node prepares the Slack message with a friendly greeting, summary details, and links to view the full incidents in ServiceNow. This section ensures that incident information is not only organized but also presented in a visually appealing and actionable manner within Slack.

Die Schritte

  1. Parse Webhook
  2. Close Modal Popup
  3. Route Message
  4. ServiceNow Modal
  5. Webhook
  6. Send 200
  7. ServiceNow
  8. Channel - Notify User no Incidents Matched
  9. DM - Notify User no Incidents Matched
  10. Were Incidents Found?
  11. No Matches - Was a Channel Selected?
  12. Sort by Most Recent
  13. Retain First 5 Incidents
  14. Loop Over Items

Insgesamt 21 Schritte.

Ähnliche Automatisierungen