APIs & Integrations

Mariaclara8
Participant

Help with Google Calendar integration bookings

Good morning! I have this code that I am trying to integrate in my emails as a button to add the reservation to the clients calendar, however everything is perfectly integrated, except the date and time... I understand that it could be a formatting problem, but I have already tried to improve it and I still only showing today's date...

 

The format date that is in the Hubspot property is: 

Mariaclara8_0-1739271804100.png

 

 

<p>

    <a href="https://www.google.com/calendar/render?action=TEMPLATE&text=Tour: {{ personalization_token('p27168940_reservas.productinfo__c', ' ') }} &dates={{ personalization_token('p27168940_reservas.startdatetime__c', ' ') | datetimeformat('%Y%m%dT%H%M%SZ') }}

&details=Número de reserva: {{ personalization_token('p27168940_reservas.n_mero_reserva', ' ') }}%0ALocalizador: {{ personalization_token('p27168940_reservas.localizador_nuevo', ' ') }}%0ATour: {{ personalization_token('p27168940_reservas.productinfo__c', ' ') }}%0AFecha del Tour: {{ personalization_token('p27168940_reservas.startdatetime__c', ' ') }}%0AOpción de Tour: {{ personalization_token('p27168940_reservas.mtt_name', ' ') }}%0APunto de encuentro: {{ personalization_token('p27168940_reservas.punto_de_encuentro', ' ') }}%0AURL Punto de encuentro: {{ personalization_token('p27168940_reservas.url_punto_de_encuentro', ' ') }}&location={{ personalization_token('p27168940_reservas.punto_de_encuentro', ' ') }}" target="_blank" style="background-color: #E54441; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px; font-family: 'Montserrat', sans-serif;">

        Añadir al calendario

    </a>

</p>

0 Upvotes
2 Replies 2
Jaycee_Lewis
Community Manager
Community Manager

Help with Google Calendar integration bookings

Hey, @Mariaclara8 👋 Thanks for your quesiton. Have you tried adjusting your dates parameter formatting like this?

&dates={{ personalization_token('p27168940_reservas.startdatetime__c', ' ') | datetimeformat('%Y%m%dT%H%M%S') }}/{{ personalization_token('p27168940_reservas.startdatetime__c', ' ') | datetimeformat('%Y%m%dT%H%M%S') }}
  • removed the Z suffix
  • Added an end date
  • Removed extra white spacing

Additionally, can you verify that your `startdatetime__c` property is a `datetime` field? 

 

Thanks,

Jaycee


Join us on March 27th at 12 PM for the Digital Essentials Lab, an interactive session designed to redefine your digital strategy!
Engage with expert Jourdan Guyton to gain actionable insights, participate in live Q&A, and learn strategies to boost your business success.
Don't miss this opportunity to connect and grow—reserve your spot today!


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !
0 Upvotes
Mariaclara8
Participant

Help with Google Calendar integration bookings

Hi! Thanks so much, i`ve realized the correct field should be p27168940_reservas.tourdatetime__c , and this is reflected like this format: 04/03/2025, 10:00:00 GMT+1. I`ve tried to replace your formula with the correct field, but the event gets created with this date instead 

Mariaclara8_0-1739449392582.png

 



Thanks in advance!

0 Upvotes