Email trigger to include an Outlook calendar invite
Best answer by James
I found 2 solutions to your problem:
1 - Survey Termination This method causes the custom ICS file to be automatically downloaded after the user Submits. This will replace any final message. At survey end, redirect to a full URL and use the webservice from Agical.io which generates ICS files on the fly. The base url is `http://ics.agical.io/` and the minimum parameters you will likely use are subject, location, start date/time (dtstart), and end date/time (dtend).
For example, using these parameters: subject=Fourth%20of%20July location=Community%20Auditorium dtstart=2018-07-04T15:00:00-04:00 dtend=2018-07-04T16:00:00-04:00 the full url is: `http://ics.agical.io/?subject=Fourth%20of%20July&location=Community%20Auditorium&dtstart=2018-07-04T15:00:00-04:00&dtend=2018-07-04T16:00:00-04:00` Note that the Date/Times are in ISO format and, of course, you'd need to replace the values in the string with embedded field strings containing the event description. Before the last question, you'll need to convert the date picked to ISO and store it in an embedded field so the generated URL can read it. To generate a Google "add to calendar" use `format=gcal`.
2 - Generate ICS as part of the survey flow This method causes the custom ICS file to be automatically downloaded before the user submits. This allows you to conditionally provide it to the user based on their preferences. Download https://github.com/nwcell/ics.js and upload two .js files (either of the ics files and the ics.deps.min.js) into your Qualtrics library.
Then, include them in the header like this:
<script type="text/javascript" src="https://xxx.az1.qualtrics.com/ControlPanel/File.php?F=F_5ci9xpvtuLRiiaT"></script> <script type="text/javascript" src="https://xxx.az1.qualtrics.com/ControlPanel/File.php?F=F_56LodesR935noqh"></script>
To test, I used the Qualtrics provided date-picker.
You can easily import it by selecting the second variation in the Demographics/Calendar & Date Questions. After a page break, or in the next block, you can reference the date picked.
Here is the question javascript code to instantiate the ics file and convert the date:
var cal = ics(); var pickDate = "<dollar-sign>{q://QID2/ChoiceTextEntryValue}"; var newDate = pickDate.replace(/-/g,"/"); cal.addEvent('Demo Event', 'This is an all day event', 'Nome, AK', newDate, newDate); cal.download(); \\[Replace `<dollar sign>` above with an actual dollar symbol, the forum editor chokes when I code the $.\\]
Note that I left the default/sample values for description and location; you'd need to change those (along with the proper reference to the user date selection). The question text should indicate the file is being downloaded or just a 'thanks.'
Sign up
Already have an account? Login
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community.
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community.
Login to the Community
No account yet? Create an account
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community.
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.

When you click on the link it downloads it for you. I am thinking that I did a google calendar event for it but not sure. here is what the coding looks like in the rich content editor