Skip to main content

I am using a web request node in workflow automator to pass a string from a requester record into a GET endpoint URL to get Location info. When the workflow automation runs, it inserts double quotes around my string value, which returns no results because the Locations don’t have double quotes in their names. I have tried a bunch of different liquid filters to try and remove the double quotes, but nothing seems to work.

Here is the Endpoint URL I am trying to use: https://marquette-sandbox.freshservice.com/api/v2/locations?query="name:'{{P1.root.requesters.requesters_object.address | remove: ":" | remove: "]"}}'"

But here is the URL it tries to run, taken from the execution log: https://marquette-sandbox.freshservice.com/api/v2/locations?query=%22name:'%22313%20N.%2013th%20Street,%20101%22'%22

The %22 is HTML code for double quotes. Based on the Endpoint URL in my web request node, the %22 should not be present before the 313 and after the 101. Does anyone know why these double quotes are getting inserted and/or a way to remove them so that my GET call can work properly?

Hi Kenneth, 

It looks like the issue you're running into is due to how the Workflow Automator handles liquid filters inside the endpoint URL — it tends to wrap values in double quotes automatically when they're parsed as strings, even when you've applied filters like remove.

To resolve this:

Avoid using liquid filters directly inside the endpoint URL. Instead, follow this approach:

  • Use a Web request node first to GET the API response to retrieve the needed requester data (such as the address).

  • Then use Parser node to parse the values from the Web request node.

  • Then, use the Expression Builder in the Freshservice workflow to to remove the double quotes from the API response. 
    Freshservice expression builder node

This will give you much better control over the formatting and prevent the URL from being auto-wrapped in quotes.

If you need help setting it up step-by-step, feel free to reach out to the Freshservice support team at support@freshservice.com — they'd be happy to guide you further!

Regards, 
Mohamed Nazeer K


Reply