locked
Can I Create a Site from an InfoPath form RRS feed

  • Question

  • Hello,

    I'm new to InfoPath and SharePoint (2007) but I do have some experience with .NET for WinForms and Office (if that helps).

    Currently we use our SharePoint site to manage projects (of which there are many). For each new project a new site is created (with a template) and all the relevant data is placed on the site. This gets tiresome because the users are not so good at creating their sites. Plus our SharePoint "experts" don't really seem to know what they are doing. The users have to copy the GUIDs for each of the sites subsections to get everything to work properly. I'm trying to make it easier for them.

    Is it possible that they could fill out an InfoPath form and that would create the site for them?

    Thank you.

     

    • Moved by Mike Walsh FIN Monday, February 14, 2011 9:14 PM As there is an InfoPath forum, use it for InfoPath questions (From:SharePoint - General Question and Answers and Discussion (pre-SharePoint 2010))
    Monday, February 14, 2011 7:49 PM

Answers

  • Yes. It is possible. You can use InfoPath managed code to create a new site in SharePoint by using either SPobject or web service.


    백상하 - http://blog.naver.com/lightyea/
    • Marked as answer by Leoyi Sun Tuesday, February 22, 2011 3:28 AM
    Tuesday, February 15, 2011 12:55 AM
  • In addition to what Sangha said, you can also use a SharePoint Designer workflow to create the site based on the form submission and set all the metadata, such as the site title, site URL, unique/inherited permissions, and the custom site template.  I do this for the same reason you listed except I don't do it in the form so that I can avoid adding custom code to my forms, because that's a big hassle for browser forms.

    To do this with an SPD workflow does require creating a custom activity in Visual Studio that you deploy to the farm, but that's how we do it so that no code is involved on the front end.


    SharePoint Architect || Microsoft MVP || My Blog
    Planet Technologies || SharePoint Task Force
    • Marked as answer by Leoyi Sun Tuesday, February 22, 2011 3:28 AM
    Tuesday, February 15, 2011 5:04 AM

All replies

  • Yes. It is possible. You can use InfoPath managed code to create a new site in SharePoint by using either SPobject or web service.


    백상하 - http://blog.naver.com/lightyea/
    • Marked as answer by Leoyi Sun Tuesday, February 22, 2011 3:28 AM
    Tuesday, February 15, 2011 12:55 AM
  • In addition to what Sangha said, you can also use a SharePoint Designer workflow to create the site based on the form submission and set all the metadata, such as the site title, site URL, unique/inherited permissions, and the custom site template.  I do this for the same reason you listed except I don't do it in the form so that I can avoid adding custom code to my forms, because that's a big hassle for browser forms.

    To do this with an SPD workflow does require creating a custom activity in Visual Studio that you deploy to the farm, but that's how we do it so that no code is involved on the front end.


    SharePoint Architect || Microsoft MVP || My Blog
    Planet Technologies || SharePoint Task Force
    • Marked as answer by Leoyi Sun Tuesday, February 22, 2011 3:28 AM
    Tuesday, February 15, 2011 5:04 AM