How to replace a comma using the Expression Builder for Google SOAR Webhooks integration

while working on receiving alerts from Cloudlfare via webhook, I need to replace the only text field that is sent by Cloudflare upon set up. The text includes a comma caracter inside. This is the sample
{
"text": "Hello World! This is a test message sent from https://cloudflare.com. If you can see this, your webhook is configured properly."
}

this expression would fail because of the comma character

| "text" | replace("If you can see this, your webhook is configured properly.","replaced text")

The only way I can reformat that text is to replace it, but the replace function fails as soon as a comma is the input substring. I tried to escape it with "\," unsuccessfully. I can replace everything else but the comma.

The final goal is to reply with a 200 code the initial mock json sent by cloudflare, so I though of recreating from scratch the mandatory fields

0 11 160
11 REPLIES 11