Skip to main content
Question

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

  • Jul 25, 2023 8:45 PM UTC
  • 6 replies
  • 219 views

Raff

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

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • Jul 25, 2023 9:08 PM UTC

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.

 


Raff
  • Author
  • Beginner
  • Jul 28, 2023 8:59 AM UTC

HI @Troy Tessalone,

 

can you explain me better, please?


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • Jul 28, 2023 2:49 PM UTC

@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.

 

 

 


Raff
  • Author
  • Beginner
  • Jul 28, 2023 4:19 PM UTC

@Troy Tessalone 

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

 


eileenh
Forum|alt.badge.img
  • New
  • Jul 29, 2023 10:02 PM UTC

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.


Raff
  • Author
  • Beginner
  • Jul 31, 2023 8:15 AM UTC

Hi @eileenh,

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