|
|
|
||||||||||||||||
| Trumba Help Center | What’s New | FAQ | Support Forum | Email Support | ||||||||||||||||
How to create iCal files for import to Trumba ConnectThe iCalendar (a.k.a. .ics) import allows events to be created, updated, or deleted on a Trumba calendar by sending an iCalendar (RFCs 2445 and 2446) format file to the Trumba server through an HTTP PUT operation. Note The information in this topic assumes that you have familiarity with the iCalendar file format. For more information regarding the iCal file format refer to RFC2445 and RFC2446. What you'll learn in this topic:
By programmatically uploading iCal files to Trumba Connect, you can update data of existing events without duplication or alteration of other event data. For information about how to upload iCal files into Trumba Connect, see How to programmatically upload iCal files to Trumba Connect. Basic iCal file that can be uploaded into Trumba ConnectBelow is a minimal sample iCal file that can be uploaded to Trumba Connect.
BEGIN:VCALENDAR
METHOD:PUBLISH VERSION:2.0 PRODID:-//Company Name//Product//Language BEGIN:VEVENT SUMMARY:Happy New Year! UID:D70C88D5-E5A1-48EC-84A4-D05DBD5CD8F6-99 DTSTART:20100101T000000 END:VEVENT END:VCALENDAR The UID is required in all cases. This allows for existing event data to be modified. It must be unique for new events. By default, event metadata such as timezone is inherited from the target Trumba calendar. Timezone can optionally be specified at the event level using the appropriate iCal syntax (e.g DTSTART;TZID). Standard and required iCal fields used by Trumba ConnectThe iCal file you publish to Trumba Connect, must contain certain fields and can optionally contain other fields. The table below summarizes how Trumba Connect's event form fields map to the field definitions in the iCal file.
You can import iCal files containing custom fields defined in Trumba Connect. Numeric identifiers are used to for all event types, custom fields and many built in fields. This will ensure that values are imported into the correct fields even if the names of the fields change. This requires you to know the numeric identifiers of the fields you want to import from the iCal file. In order to get all of the numeric identifiers you need, sample exports of your existing data in the Trumba calendar must be performed. Custom field importHere are the steps needed to specify custom field values in events to be imported into Trumba Connect.
X-TRUMBA-CUSTOMFIELD;NAME="Comments";ID=10899;TYPE=MultiLine:My Comments
To import the above custom field "Comments", ID=10899 must be specified in the iCal import file. The iCal file being imported requires only the ID and value. The TYPE and NAME attributes are ignored. Hence, the import of the above custom field "Comments" could look like this; X-TRUMBA-CUSTOMFIELD;NAME="Comments";ID=10899;TYPE=MultiLine:My Comments
or be simplified as shown below. X-TRUMBA-CUSTOMFIELD;ID=10899:My Comments Amended
Importing imagesImages are specified by URL. This can be a URL to an external image on the internet or a URL to an image previously copied into the Trumba servers using the "manage images" feature.
X-TRUMBA-CUSTOMFIELD;ID=74:http://www.trumba.com/i/DgDI5HACAaw*m0Jsdf*sUVc0.jpg
Sample import fileBelow is a sample iCal file with custom fields. It imports all of the various types associated with Trumba Connect custom fields and an event image. The NAME and TYPE attributes have been left in the file to provide contextual information.
BEGIN:VCALENDAR
METHOD:PUBLISH VERSION:2.0 PRODID:-//Company Name//Product//Language BEGIN:VEVENT SUMMARY:CustomField Event1 LOCATION:1200 Fifth Ave\, Seattle WA 98101 DTSTART;TZID=America/Los_Angeles:20100101T080000 DTEND;TZID=America/Los_Angeles:20100101T090000 X-MICROSOFT-CDO-ALLDAYEVENT:FALSE URL:http://www.trumba.com/calendars/icstest DESCRIPTION:Event Notes: This event starts at 8:00 a.m. PT on Jan 1\, 2010. LAST-MODIFIED:20090218T213810Z DTSTAMP:20090218T183200Z CREATED:20090218T183200Z X-TRUMBA-CUSTOMFIELD;NAME="Event Type";ID=21;TYPE=Number:Contains all Custom Field Types X-TRUMBA-CUSTOMFIELD;NAME="my single line of text";ID=12295;TYPE=SingleLine:This is a single line of text X-TRUMBA-CUSTOMFIELD;NAME="my multiple lines of text";ID=12296;TYPE=MultiLine:This is line 1\nThis is line 2 X-TRUMBA-CUSTOMFIELD;NAME="my list of choices";ID=12297;TYPE=CustomAsset:my choice 2 X-TRUMBA-CUSTOMFIELD;NAME="my yes or no";ID=12298;TYPE=Boolean:Yes X-TRUMBA-CUSTOMFIELD;NAME="my number";ID=12299;TYPE=Number:1000000 X-TRUMBA-CUSTOMFIELD;NAME="my currency";ID=12300;TYPE=Currency:$1000 X-TRUMBA-CUSTOMFIELD;NAME="my web link";ID=12301;TYPE=Url:http://www.trumba.com/calendars/icstest X-TRUMBA-CUSTOMFIELD;NAME="my email address";ID=12302;TYPE=Email:sales@corp.trumba.com X-TRUMBA-CUSTOMFIELD;NAME="my phone number no ext";ID=12303;TYPE=PhoneUS:206-696-7200 X-TRUMBA-CUSTOMFIELD;NAME="my international phone number";ID=12304;TYPE=PhoneInt:+011-206-696-7200 X-TRUMBA-CUSTOMFIELD;NAME="Event image";ID=40;TYPE=Image:http://www.trumba.com/i/DgBTYJSrl5YVo*2Ogw9Dasd3.jpg UID:http://uid.trumba.com/event/82912153 END:VEVENT END:VCALENDAR |
|||||||||||||||||
| Privacy | Terms | Public Calendars | |||||||||||||||||
| © 2004–2010 Trumba Corporation. All rights reserved. Click for trademark information. | |||||||||||||||||