InfoPath and Calendar requests - InfoPath Dev
in

InfoPath Dev

InfoPath and Calendar requests

Last post 03-11-2013 06:40 AM by TomRenfro. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 03-05-2013 03:14 PM

    • TomRenfro
    • Top 75 Contributor
      Male
    • Joined on 09-29-2011
    • Oklahoma City, OK
    • Posts 134

    InfoPath and Calendar requests

    I hope this hasn't been answered ad nauseum. I'm hoping there is a method for sending calendar updates, such as appointments or all day events, to Outlook. I use a form product currently that I create a ICS iCalendar formatted text file that gets attached to an email alert. The user then opens the file, saves the results to their calendar, making any individual modifications as they wish. I'm attaching a sample as a text file. The native file extension is ics.

    The values in the file would be from form fields. I'm hoping there's a codeless way to do this, although I'm not opposed to full trust.

    Thanks in advance.

  • 03-07-2013 06:48 AM In reply to

    • TomRenfro
    • Top 75 Contributor
      Male
    • Joined on 09-29-2011
    • Oklahoma City, OK
    • Posts 134

    Re: InfoPath and Calendar requests

    Does somebody have any wisdom on this subject?  I'm basically wanting to write to a text file, save as an iCalendar file (.ics), and attach to an email message.  I'm stuck on writing to a text file from an InfoPath browser form, of course, trying to do it without needing to write code.  I'd like to avoid full trust if at all possible.

    Please help.

  • 03-08-2013 08:47 AM In reply to

    Re: InfoPath and Calendar requests

    Hi Tom,

    Quick response is to submit the items to a SharePoint Calendar and then set up synch with that calendar to Outlook. We've done this for our internal Leave Request form. Works well. To submit to the Calendar, you could use qRules SubmitToList or you could use the CAML technique Jo-Anne detailed in yesterday's webinar.

    I will review and respond again over the weekend. 

    Patrick Halstead
    Project Manager at Qdabra
  • 03-08-2013 10:58 AM In reply to

    • TomRenfro
    • Top 75 Contributor
      Male
    • Joined on 09-29-2011
    • Oklahoma City, OK
    • Posts 134

    Re: InfoPath and Calendar requests

    Thanks for the reply Patrick.  Sounds like a good team solution, however, this form is intended for organizational use which involves roughly 5000 or more users.  Not every department uses SharePoint team calendars, which is why I had been using an iCalendar file for the previous version (not InfoPath).

    I wonder if there's ever been any success with creating calendar items using Exchange web services?

  • 03-09-2013 07:04 PM In reply to

    Re: InfoPath and Calendar requests

    Hi again,

    Sorry for the strike one. I was a bit harried when I whiffed that one.

    OK, so with more thought on a Saturday, I think that it should be easy to generate this from fields. The problem is going to be creating a file that is then attached or outputted.

    You might be able to use concat to build up the ics file using the fields and static text. Then, you could convert it into BASE64 and set a file attachment field to the value. qRules has DecodeBase64 but it does not have EncodeBase64, but it would be easy to add. Is qRules an option here? If so, send us email and we'll get it in the next release. Then, you could save the attachment as a file to a doclib using the qRules SaveToSharePoint command. After it's converted to a link via SaveToSharePoint, users could click on the link to add to their calendar. Codeless for you, but requires qRules.

    Suppose concat doesn't work because it's hard to get the line breaks or something. Well, you could use some kind of an XSLT transform to create the ics file format. Here again, qRules transform command might just do the trick and the result could be saved to a text string.

    But, how to get it out into a file without full trust. If you were using the InfoPath Filler, the only way to write it to the local file system is to use full trust. qRules has a command for writing to the local file system, but who cares? You are using the browser.

    Workflow custom action could be implemented to take the XML file and generate an ICS file that was mailed to the users. That's code though, albeit not in InfoPath.

    We could write a Web service to take the fields and create the ICS and return a link to it that would be clickable and open up in Outlook. Would be simple.

    Oh, but it's way easier than that... check this out: http://www.youtube.com/watch?v=4mS8WrJuRQY

    You can use SharePoint 2010 out of box to generate these via the owssvr method. What does this mean? It means you just need to create the calendar request. Codeless way to do that would be CAML - see the webinar we did this week. Or, you could use qRules to generate it. Then, create the URL to owssvr using concat, and have them click on that.

    This would be very cool to put in a weekly webinar. Let me know if you need help doing it and we'll try to whip something up.

    Patrick Halstead
    Project Manager at Qdabra
  • 03-10-2013 11:05 AM In reply to

    Re: InfoPath and Calendar requests

    One more comment. I think the out-of-box technique may require adding an item to the calendar and this may not scale to your scenario, but it will work until they open the ics via the link. Then, you can create a simple workflow that removes it (or use the qRules delete feature on submit).
    Patrick Halstead
    Project Manager at Qdabra
  • 03-11-2013 06:40 AM In reply to

    • TomRenfro
    • Top 75 Contributor
      Male
    • Joined on 09-29-2011
    • Oklahoma City, OK
    • Posts 134

    Re: InfoPath and Calendar requests

    Hi Patrick,

    Just got in from the weekend, and I'll take a closer look at the suggestions you posted.  And yes, qRules would definitely be viable.  I received it when I came to training, and am using it quite a bit these days.

    This might be a good use of the hour's consulting, what do you think?

Page 1 of 1 (7 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.