Notify Slack when an Asset Goes Offline
Platform: | WebMobile |
---|---|
Plan Type: | BasicEssentialPremiumEnterprise |
User Type: | RequesterFull UserAdministrator |
This example shows you how to use MaintainX webhooks to trigger a Zap when an asset's status changes to Offline. When the Zap is triggered, it sends a message in Slack that contains the data from MaintainX.
Trigger​
In Zapier:
- In the Zap, configure the trigger like this:
Field | Value |
---|---|
App | Webhooks |
Trigger Event | Catch Hook |
Account | The Gmail account you want to use to authenticate. |
- Copy the generated webhook URL.
Webhook​
In MaintainX:
-
From the sidebar, select Settings, and under ORGANIZATION SETTINGS, select Integrations.
-
On the Integrations page, select Webhooks.
-
Select + New Webhook.
-
In the Generate New Webhook dialog, set the following options:
Field Value Trigger Webhook On Asset Status Change Endpoint Paste in the webhook URL you generated in Zapier. Basic Asset Statuses OFFLINE tipYou can also use the Custom Asset Statuses setting to add custom asset statuses that will trigger the webhook.
-
Select Create endpoint to generate the webhook.
-
Test the trigger by setting an asset's status to Offline.
Action​
In Zapier:
-
In the Zap, add an action, and select Slack as the App.
-
In the Setup options, set the following:
Field Value Event Send Channel Message Account The Slack account you want to use to authenticate. -
Map the MaintainX fields to the email fields as follows.
MaintainX Field Slack Field Title Subject Description Body -
In the Configure options, configure the message body by using fields from the trigger (e.g., asset name).
In MaintainX and Slack:
Test your Zap by setting an asset's status to Offline and seeing if a new Slack message is posted.