Concatenate Action address Google Maps to Whatsapp

Hi!

I have a action that concatenate address and city in google maps to send for whatsapp.

Action Name: Maps
For a record of this table: Ventas
Do This: External: Go to a website
Target:

CONCATENATE
     (โ€œhttps://api.whatsapp.com/send?phone=",CONCATENATE("+551111111โ€),"&text=",
CONCATENATE("Hi!%0A%0A", )
CONCATENATE
(โ€œhttps://www.google.com/maps/place/",CONCATENATE([ADDRESS],","," ",[CITY])))

Result in Whatsapp:
Captura de pantalla 2023-03-05 a la(s) 15.40.39.png
No link to Google Maps


I tried with
https://www.google.com/maps?q=
https://www.google.com/maps/search/

It doesnt work ๐Ÿ˜ž

any help?
Thanks

 

Solved Solved
0 9 727
1 ACCEPTED SOLUTION

I was just illustrating for you where to position the ENCODEURL function to apply it to the entire text parameter's value. I hadn't reviewed the rest of your expression. Here's a version that I tested works for me (at least when I manually substitute a valid WhatsApp number where you have "551111111" and an address where you have the [ADDRESS] column).

 

CONCATENATE(
  โ€œhttps://api.whatsapp.com/send?phone=",
  "+551111111โ€,
  "&text=",
  ENCODEURL(
    CONCATENATE(
      "Hi!
  
  ",
  โ€œhttps://www.google.com/maps/place/",
      ENCODEURL(
        [ADDRESS]
      )
    )
  )
)

 

 

View solution in original post

9 REPLIES 9

Maybe you need to use ENCODEURL()

Thanks @Marc_Dillon 

I tried only with [ADDRESS] but result is always with spaces.

 

CONCATENATE
(โ€œhttps://api.whatsapp.com/send?phone=",CONCATENATE("+551111111โ€),"&text=",
CONCATENATE("Hi!%0A%0A"),
CONCATENATE
(โ€œhttps://www.google.com/maps/place/",ENCODEURL([ADDRESS])
))

 

https://www.google.com/maps/place/RIBERAO PRETO 228 (WRONG)

https://www.google.com/maps/place/RIBERAO%20PRETO%20228 (OK)


Any help?

Encode the entire value of the WhatsApp API's text parameter.

Thanks @dbaum 
But I dont understand....Encode the entire value of the whatsapp API's text parameter?

ENCODEURL(CONCATENATE
(โ€œhttps://api.whatsapp.com/send?phone=",CONCATENATE("+551111111โ€),"&text=",
CONCATENATE("Hi!%0A%0A"),
CONCATENATE
(โ€œhttps://www.google.com/maps/place/",[ADDRESS]
)))

 

CONCATENATE
(โ€œhttps://api.whatsapp.com/send?phone=",CONCATENATE("+551111111โ€),"&text=",
ENCODEURL(
CONCATENATE("Hi!

"),
CONCATENATE
(โ€œhttps://www.google.com/maps/place/",[ADDRESS]
)))

Gracias @dbaum 

โ›”ENCODEURL function is used incorrectly

Modifiquรฉ el cรณdigo quitando la coma " , " en la fila 6.
Lo acepta pero en whatsapp no aparece el link de google maps, solo aparece
"Hi!"

 

CONCATENATE
(โ€œhttps://api.whatsapp.com/send?phone=",CONCATENATE("+551111111โ€),"&text=",
ENCODEURL(
CONCATENATE("Hi!

")
CONCATENATE
(โ€œhttps://www.google.com/maps/place/",[ADDRESS]
)))

 

I was just illustrating for you where to position the ENCODEURL function to apply it to the entire text parameter's value. I hadn't reviewed the rest of your expression. Here's a version that I tested works for me (at least when I manually substitute a valid WhatsApp number where you have "551111111" and an address where you have the [ADDRESS] column).

 

CONCATENATE(
  โ€œhttps://api.whatsapp.com/send?phone=",
  "+551111111โ€,
  "&text=",
  ENCODEURL(
    CONCATENATE(
      "Hi!
  
  ",
  โ€œhttps://www.google.com/maps/place/",
      ENCODEURL(
        [ADDRESS]
      )
    )
  )
)

 

 

Thank youuu!!! @dbaum 
Works perfect!

Top Labels in this Space