Hi,
I am getting from an API Integration a long message payload:
{"customerId":"xxx","customerName":"xxx","username":"xxx","userId":"xxx","settings":{"type":"ALARM_ONLY","version":"CUSTOM","screenSaverVersion":"NO_SCREEN_SAVER","recipientsType":"ALL","participantSortOrder":"NN_VN_COMMENT","mapType":"HYBRID","screenSaverTimeout":120,"defaultMapZoomFactor":13,"defaultMapLongitude":null,"defaultMapLatitude":null,"showFunctions":true,"showMultipleAlarms":false,"customLayout":"{\"layout\":\"SINGLE\",\"tiles\":[{\"urlExtra\":\"?Bereich=all\",\"provider\":\"zamg\",\"province\":\"\",\"hideTitle\":true,\"showFunctions\":false,\"mapType\":\"terrestris\",\"showOfm\":false,\"showRoute\":false,\"recipientsType\":\"ALL\",\"zoomLevel\":17,\"maxWasserkarteItems\":50,\"type\":\"last-alarm-text\"}],\"showHeader\":false}","customScreenSaverLayout":"{\"layout\":\"DUAL_VERTICAL\",\"tiles\":[{\"urlExtra\":\"?Bereich=all\",\"provider\":\"zamg\",\"province\":\"\",\"hideTitle\":true,\"showFunctions\":false,\"mapType\":\"terrestris\",\"showOfm\":false,\"showRoute\":false,\"recipientsType\":\"ALL\",\"zoomLevel\":17,\"maxWasserkarteItems\":50,\"type\":\"future-alarms\"},{\"urlExtra\":\"?Bereich=all\",\"provider\":\"zamg\",\"province\":\"\",\"hideTitle\":true,\"showFunctions\":false,\"mapType\":\"terrestris\",\"showOfm\":false,\"showRoute\":false,\"recipientsType\":\"ALL\",\"zoomLevel\":17,\"maxWasserkarteItems\":50,\"type\":\"blackboard\"}],\"showHeader\":true}","defaultMapCoordinates":null,"printingEnabled":false},"customerLocation":{"administrativeArea":"Kärnten","latitude":46.9801471,"longitude":14.2123172,"southBoundLatitude":46.9256805,"northBoundLatitude":47.0585828,"westBoundLongitude":14.0119019,"eastBoundLongitude":14.2648153},"integrations":[],"alarms":[{"productType":"BLAULICHT","customerId":"xxx","alarmId":"995c1b40-56b7-46f5-8653-22e05f86714a","scenarioId":null,"indexNumber":78973,"alarmGroups":[{**"groupId":"G1","groupName":"Sirenenalarm"**}],"alarmDate":"2019-02-03T15:21:02.020Z","endDate":"2019-02-04T15:21:02.020Z","authorName":"LAWZ Klagenfurt","alarmText":"Sirenenalarm (Techn.Einsatz/AST1) für Metnitz:\nEO Unteralpe 18,\nGDE Metnitz 16:20","audioUrl":null,"needsAcknowledgement":true,"usersAlertedCount":44,"geolocation":{"coordinates":{"lat":46.97994689999999,"lon":14.1689192},"positionSetByAuthor":false,"radius":50,"distance":5122,"duration":7,"address":"Unteralpe 18, 9363, Österreich"},"coordinates":{"lat":46.97994689999999,"lon":14.1689192},"recipients":[{xxx}],"futureAlarms":[{"productType":"BLAULICHT","customerId":"xxx","alarmId":"xxx","scenarioId":null,"indexNumber":null,"alarmGroups":[],"alarmDate":"2019-03-08T18:30:00.000Z","endDate":"2019-03-08T18:30:00.000Z","authorName":"xxx","alarmText":"Termin am 08.03.2019 19:30 - Vollversammlung","audioUrl":null,"needsAcknowledgement":false,"usersAlertedCount":0,"geolocation":{"coordinates":null,"positionSetByAuthor":false,"radius":null,"distance":null,"duration":null,"address":null},"coordinates":null,"recipients":[],"pointsOfInterest":[]}],"blackboard":{"content":null,"lastUpdateDate":null,"lastUpdateAuthorId":null}}
Inside this Message you will find the following Information:
[{**"groupId":"G1","groupName":"Sirenenalarm"**}]
I want to trigger an Action when "groupName" is either "Sirenenalarm" or "Stiller Alarm".
How could I achive this?
Br,
Johannes