Skip to main content

Notify Slack when an Asset Goes Offline

availability
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:

  1. In the Zap, configure the trigger like this:
FieldValue
AppWebhooks
Trigger EventCatch Hook
AccountThe Gmail account you want to use to authenticate.
  1. Copy the generated webhook URL.

Webhook​

In MaintainX:

  1. From the sidebar, select Settings, and under ORGANIZATION SETTINGS, select Integrations.

  2. On the Integrations page, select Webhooks.

  3. Select + New Webhook.

  4. In the Generate New Webhook dialog, set the following options:

    FieldValue
    Trigger Webhook OnAsset Status Change
    EndpointPaste in the webhook URL you generated in Zapier.
    Basic Asset StatusesOFFLINE
    tip

    You can also use the Custom Asset Statuses setting to add custom asset statuses that will trigger the webhook.

  5. Select Create endpoint to generate the webhook.

  6. Test the trigger by setting an asset's status to Offline.

Action​

In Zapier:

  1. In the Zap, add an action, and select Slack as the App.

  2. In the Setup options, set the following:

    FieldValue
    EventSend Channel Message
    AccountThe Slack account you want to use to authenticate.
  3. Map the MaintainX fields to the email fields as follows.

    MaintainX FieldSlack Field
    TitleSubject
    DescriptionBody
  4. 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.