Question

How to tell Zapier to swallow the & character when constructing a URL?

  • 25 July 2023
  • 6 replies
  • 98 views

Userlevel 1

Hi,

I have a little problem, I have to build and send a url but when Zapier meet (&) truncates the url it when constructing the url. How do you tell him to swallow the &? I have attached the screen shots

 


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

6 replies

Userlevel 7
Badge +14

Hi @Raff 

Good question.

For HTTP POST requests, use the Data section to set the key/value pairs for everything after the first ? in the URL field.

 

Userlevel 1

HI @Troy Tessalone,

 

can you explain me better, please?

Userlevel 7
Badge +14

@Raff 

Take all these key-value pairs from the URL field after the ?

Add those to Data section.

Left side is the key (before the =) and right side is the value (after the =).

e.g. left side would be faces-redirect, right side would be true.

 

 

 

Userlevel 1

@Troy Tessalone 

I did as you told me...but it doesn't work

 

Userlevel 2
Badge

Hi @Raff! I believe you’ll want to remove the URL parameters from the request URL, so that it’s just https://my.wazy.app/api/send.php. I’m getting this from Zapier’s Send webhooks in Zaps documentation: 

 

I would try that first. If you’re still not working, you could try encoding the URL that’s associated with your “message” key – that would replace special characters, such as &, with their corresponding hexadecimal value, allowing the URL to be passed. There are free tools online (such as this one) where you can input the URL and have it generate the encoded version. It’s possible that Zapier already does this automatically, but I couldn’t find any documentation saying that’s the case.

I hope that helps! Let us know what ends up working or if you’re still having difficulty.

Userlevel 1

Hi @eileenh,

many thanks, you have been a great help now it’s work I have used free tools online.