16 Replies Latest reply on Mar 6, 2017 7:37 AM by Osman Erzinclioglu

    Ways to use the calendar token?

    Eric Salalmon

      Now here are the following ways I have used the calendar token in the past:

      • Added the image html so that it would hyperlink to an image
      • Added the html so that the text will look the way I want it to

      But now I have a strange issue. My company just started to use the modules so there is an image that needs to link to the same link as below, and wouldn't you know it the link is a calendar token. How would I reference the token information  without duplicating it is there some kind of <a href> I could use so that I could anchor the link to the one that populates the token?

        • Re: Ways to use the calendar token?
          Sanford Whiteman

          Thread should be moved to Products methinks. ("Central" being for non-Marketo-specific marketing topics, as confusing as that is.)

           

          You can't have two different types of special formatting for the same calendar token, so you'd need two tokens.  Or you could use Agical.io and open your mind to much more.

          • Re: Ways to use the calendar token?
            Osman Erzinclioglu

            I'd like to see the Marketo calendar token:

             

            • Allow for the use of other tokens in the "Subject" and "Location" fields like it does in the "Description" field.
            • Pull the date and time from the "Main Event" entry, a date token, or allow for a reference that's relative to a date token – like in the "wait" flow step.
            • Include a reminder field that can be set and that has a reasonable default value, or allow for a reference that's relative to a date token – like in the "wait" flow step.

             

            Agical.io looks useful, but it still requires the user to piece together and then properly encode the string, which is not great if we want to create a program that Marketing can just clone, populate tokens for (without encoding anything), and then launch.

             

            For anyone looking to generate calendar links, Add Event (www.addevent.com) is one tool. The great thing about it is that you can create an event and it will generate a button for your site as well as Outlook, AppleCal, Google, Yahoo and Outlook.com links. All the calendar entries you create can be viewed and managed in one place. If you send out a link to a calendar that's incorrect, you can update it. Anyone can use it – the steps for creating an event are simple. Just fill out some fields. It does all the work for you. Also, there's an API.

             

            The pricing is pretty reasonable too.

             

            I'd really love to see improvements in Marketo though. That would be really helpful to us.

            1 of 1 people found this helpful
              • Re: Ways to use the calendar token?
                Sanford Whiteman

                Agical.io looks useful, but it still requires the user to piece together and then properly encode the string, which is not great if we want to create a program that Marketing can just clone, populate tokens for (without encoding anything), and then launch.

                Hey man, that's only because you didn't build a UI for it.

                  • Re: Ways to use the calendar token?
                    Osman Erzinclioglu

                    I'll get right on that.

                     

                    We recently leveraged the API to read a {{my.capacity}} token we created in our event programs to close an event when the number of registrants reached that capacity. I guess the next thing will be to generate calendar links on the fly using the API and a program ID.

                      • Re: Ways to use the calendar token?
                        Sanford Whiteman

                        Or store the event info in an (editable) Velocity dictionary object token, then output the URL using another (no-touch) token.

                         

                        my.vtl_eventinfo

                        #set( $event = {
                          "title" : "Group chat session",
                          "date" : "2017-03-15",
                          "time" : "05:00 EST",
                          "reminder" : "5m"
                        } )
                        

                         

                        my.vtl_eventlink

                        <a href="http://calendaring.example.com/?subject=${event.title}&startDate=${event.date} [... etc...]">Add to calendar</a>
                        
                        1 of 1 people found this helpful
                          • Re: Ways to use the calendar token?
                            Osman Erzinclioglu

                            That's clever, but I want to keep anyone from having to tinker with any code, no matter how simple. Also, I'd like to remove as much redundancy as possible.

                             

                            I'm just going to use Marketo's existing calendar tokens for now and accept the redundancy. Later on I might look at using the API. That way, I'll be able to add calendar links anywhere I like so long as I know the program ID, and if I have to make any changes to dates, they'll be applied everywhere the moment the program is updated.

                             

                            And no one in Marketing will ever to look at anything that looks remotely like code.

                             

                            Thanks for the tips though, Sanford! I hadn't realized you could separate the tokens in that way. I thought each token was self-contained.

                              • Re: Ways to use the calendar token?
                                Sanford Whiteman

                                I'm just going to use Marketo's existing calendar tokens for now and accept the redundancy. Later on I might look at using the API. That way, I'll be able to add calendar links anywhere I like so long as I know the program ID, and if I have to make any changes to dates, they'll be applied everywhere the moment the program is updated.

                                FYI, calendar tokens themselves don't actually work w/the API last time I looked. But you can use regular text tokens (maybe that's what you meant).

                                 

                                Thanks for the tips though, Sanford! I hadn't realized you could separate the tokens in that way. I thought each token was self-contained.

                                Yep, Velocity context is shared across tokens (in insertion order).  I often add a dictionary object to the header in the template, then read it in the email.

                                1 of 1 people found this helpful
                          • Re: Ways to use the calendar token?
                            Osman Erzinclioglu

                            Good work though, on Agical.io. At least that gives people an option.