Skip to main content
Nintex Community Menu Bar
Question

Google Calendar Embed with merge variables - Can't get this to work

  • Jul 10, 2024 11:59 AM UTC
  • 7 replies
  • 43 views
  • Translate All

Forum|alt.badge.img+17

I started on a “quick and easy” project. I just want to put a google calendar embed in my skuid page but have the calendar display for the current logged in user. I can recreate the embed script exactly but the Iframe displays the salesforce header with an error message. I have tried 3 ways of recreating the embed and all recreate it exactly, but Salesforce will not allow it if it includes any merge variables. Anyone have any ideas on this?

This topic has been closed for replies.

7 replies

Forum|alt.badge.img+13

Can you post the exact embed code / Skuid template merge you’re using? 

To disable the SFDC header, try adding &isdtp=mn to your embed url, as described here: https://developer.salesforce.com/forums/?id=906F000000095wbIAA

Translate

Forum|alt.badge.img+17

Thanks Zach, When I use the code that Google generates, the iframe works fine. No Salesforce Header, no error message. When I replace any of the Google code with a merge variable, it seams like salesforce knows and won’t let it load. I have tried just replacing the email section, the entire url and the entire embed. I created custom fields on the user object and formatted them the same as what Google does. I confirmed the merges are working correctly. The resulting code is exactly the same as Googles. Here is one example. The first embed is what Google generated. The second embed is where I replace the MyName%40mydomain.com with a merge field {{GoogleCalendarEmailformat}}. The merge is working and the code is identical, but the second one doesn’t work.

Translate

Forum|alt.badge.img+13

Make sure you use three braces for the merge, e.g. {{{GoogleCalendarEmailformat}}}

Translate

Forum|alt.badge.img+17

Ah… That is probably it. I’ll give it a try. Did you ever get around to this? https://community.skuid.com/t/google-calendar-rest-example-from-dreamforce-15

Translate

Forum|alt.badge.img+17

That was the problem. I am both excited to have a solution and devastated that I spend an hour troubleshooting it when all I needed was a third pair of mustaches! Thanks for the help. Is there ever a time when you wouldn’t want three braces?

Translate

Forum|alt.badge.img+7

Two braces outputs the value formated (with div’s, the references are a link,…)
Three braces just output the raw value of the field

Translate

Forum|alt.badge.img+17

I see… Thanks Pablo!

Translate