This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Can I use string functions in my alert trigger action template? (I want to replace backslashes)

When my alert is triggered, I'm posting the volume label to an HTTPS endpoint as JSON.

But my volume labels have backslashes in them, and my POST is failing.

Is there a .replace string function that I can use to strip out the backslashes?

Thanks~!

PS: Right now, this is what my variable looks like:

${N=SwisEntity;M=Caption}

But that outputs as "G:\ Label:Data E8C0F579" , and as mentioned, that "\" character breaks my JSON that I'm posting to my endpoint.