Need help with Teams integration

Hi, i'm following this guide here to do Teams integration and so far using the sample payload snippet code, I was able to trigger the alerts for node down. But when I try to do this on e.g HDD alerts, the code is not working and I'm getting HTTP failed.

I also tried inserting the variable from Solarwinds but it does not help as well. Can anyone point out how to do this for different alert types ? thanks.

  • If node down works, you likely need different variables for the payload. 

    In your alert, you can place this into an alert and work out the correct variables. You will want all of them to show the correct data so that { and } don't break up the payload and cause the request to fail. 

      "title": "ALERT TRIGGER: ${N=SwisEntity;M=Caption} is currently ${N=SwisEntity;M=Status}",
      "text": "DEVICE: [${N=SwisEntity;M=Caption}](${N=SwisEntity;M=DetailsUrl})
      IP ADDRESS: ${N=SwisEntity;M=IP_Address}
      VENDOR: ${N=SwisEntity;M=Vendor}
      MODEL: ${N=SwisEntity;M=MachineType}
      [ALERT DETAILS](${N=Alerting;M=AlertDetailsUrl})
      [ACKNOWLEDGE THIS ALERT](${N=Alerting;M=AcknowledgeLink})"