Hi - hoping someone can help. I followed an excellent YouTube tutorial on creating a simple calendar application. Most of it is working perfectly, but I want the user to be able to add an item from the SharePoint calendar into their personal calendar. The tutorial used an old version of PostItem, so I'm not sure sure what else I might need to change. The code below is a slightly tweaked version of what was in the tutorial.
dropdowncal is a dropdown box that allows the user to select which calendar to add an item to. This is working, so I think the data connection to Outlook is OK. The rest is throwing up a bunch of "invalid argument" errors.
Office365Outlook.V4CalendarPostItem(dropdowncal.Selected.Value, BrowseGallery1.Selected.Title, Text(BrowseGallery1.Selected.EventDate,DateTimeFormat.UTC), Text(BrowseGallery1.Selected.EndDate,DateTimeFormat.UTC), {Body: BrowseGallery1.Selected.Description, IsHtml: true, Location:BrowseGallery1.Selected.Location} );
UpdateContext({CalButton:false});UpdateContext({CalButtonDone:true})