Hi @Sec2 , thanks for reaching out. I’d recommend checking out our docs on ending a workflow early. You should be able to add a new Node.js code step to your workflow and run something like this:
if (steps.get_request.$return_value.alertId === 12345) {
$end("Alert code is 12345, so no need to alert")
}
This ends the workflow early when the status code is what you expect. Otherwise, the workflow would continue to the next step. So you can add an additional step after this one that runs the logic to send an alert to your helpdesk, since that step would only run if the alert code were different.
Take a look at this example workflow - someone else built an uptime checker for his app that solves a similar use case.
This is clear to me, thanks a lot.
In this case, the server replies with a random 5 digits number. Is there a way to just check if the reply consist of 5 digits and not a specific number?