Skip to main content
Solved

HTTP v2 action in playbook can't do escape characters?

  • September 19, 2025
  • 2 replies
  • 33 views

jsy
Forum|alt.badge.img+2

So in my HTTP v2 action I construct a JSON using

 

{ “path” : "[Event.event_target_file_fullPath]" }

 

and the value for `Event.event_target_file_fullPath` is c:\abc\def\ghi.

 

When I click to perform a simulation of the playbook, the HTTP v2 step fails with this error: Failed decoding body: ParsingError(Error parsing JSON: Error(\\"expected value\\", line: 1, column: 1))

 

My guess is that it doesn’t like “path” : “c:\abc\def\ghi”, and it should be “path” : “c:\\abc\\def\\ghi”. How can I perform this conversion? The field is literally taken out of a UDM field so I didn’t think conversion would be required. I also have application/json set as a content type header.

Best answer by ylandovskyy

Hey ​@jsy ,


My suggestion would to use “String Functions” from “Functions” PowerUp to replace “\” with “\\” and then put it in the HTTPV2 action.

2 replies

ylandovskyy
Staff
Forum|alt.badge.img+16
  • Staff
  • Answer
  • September 19, 2025

Hey ​@jsy ,


My suggestion would to use “String Functions” from “Functions” PowerUp to replace “\” with “\\” and then put it in the HTTPV2 action.


jsy
Forum|alt.badge.img+2
  • Author
  • New Member
  • September 19, 2025

Ah! I wasn’t aware something like that existed. Thank you ​@ylandovskyy . I shall take a look.