Using Infopath to create a folder and save a form to Sharepoint upon Submit

L

lovinlifenowme

Hello! I'm a relatively new Infopath user with enough techinical
background to be very scary.

We are using Infopath & Sharepoint 2003, and trying to tie the two
together. I have created a specific form, published it to our
Sharepoint site and created an file name creation upon submitting the
form - that is working perfectly.

My business partners would like to have the form create a folder in
the Sharepoint site upon submit and save the form in it at the same
time, both carrying the auto-created file name. Then they can other
documentation manually to the file folder to accompany the form
created.

Is this possible? I'm not a developer by all means, but if you point
me in the right direction I can figure it out.

Thanks in advance!
~gg
 
A

Alexey Smirnov

Hello! I'm a relatively new Infopath user with enough techinical
background to be very scary.

We are using Infopath & Sharepoint 2003, and trying to tie the two
together. I have created a specific form, published it to our
Sharepoint site and created an file name creation upon submitting the
form - that is working perfectly.

My business partners would like to have the form create a folder in
the Sharepoint site upon submit and save the form in it at the same
time, both carrying the auto-created file name. Then they can other
documentation manually to the file folder to accompany the form
created.

Is this possible? I'm not a developer by all means, but if you point
me in the right direction I can figure it out.

Thanks in advance!
~gg

Using rules and Data Connections you can extend save functionality.
More info: http://msdn2.microsoft.com/en-us/library/bb608316(office.11).aspx
 
W

Will Wathen

I am looking to do the exact same thing you mentioned here. I have the Infopath form set up and the autonumbering is working great. No would like to have a folder with the same name created to house supporting documents. Would really like to do it without writing code. Just using the Data Connections, Submit Options, Rules, etc. But if you have some code that I could "borrow" that would work too. Any advice would be great. Thanks.



lovinlifenowm wrote:

Using Infopath to create a folder and save a form to Sharepoint upon Submit
10-Aug-07

Hello! I'm a relatively new Infopath user with enough techinica
background to be very scary

We are using Infopath & Sharepoint 2003, and trying to tie the tw
together. I have created a specific form, published it to ou
Sharepoint site and created an file name creation upon submitting th
form - that is working perfectly

My business partners would like to have the form create a folder i
the Sharepoint site upon submit and save the form in it at the sam
time, both carrying the auto-created file name. Then they can othe
documentation manually to the file folder to accompany the for
created

Is this possible? I'm not a developer by all means, but if you poin
me in the right direction I can figure it out

Thanks in advance
~gg

Previous Posts In This Thread:

Using Infopath to create a folder and save a form to Sharepoint upon Submit
Hello! I'm a relatively new Infopath user with enough techinica
background to be very scary

We are using Infopath & Sharepoint 2003, and trying to tie the tw
together. I have created a specific form, published it to ou
Sharepoint site and created an file name creation upon submitting th
form - that is working perfectly

My business partners would like to have the form create a folder i
the Sharepoint site upon submit and save the form in it at the sam
time, both carrying the auto-created file name. Then they can othe
documentation manually to the file folder to accompany the for
created

Is this possible? I'm not a developer by all means, but if you poin
me in the right direction I can figure it out

Thanks in advance
~gg

Re: Using Infopath to create a folder and save a form to Sharepoint upon Submit
Using rules and Data Connections you can extend save functionality
More info: http://msdn2.microsoft.com/en-us/library/bb608316(office.11).aspx


Submitted via EggHeadCafe - Software Developer Portal of Choice
JavaScript VML Task Flow Designer
http://www.eggheadcafe.com/tutorial...11-d34a1432e9ce/javascript-vml-task-flow.aspx
 
A

AndyS

Funny you should ask this but I have just last week done the same thing. The
code below may give you enough to go on.

I have a web service in my project called svcRecords and the code below
requires the URL to the lists.asmx webservice on the site (e.g.
http://mysite/_vti_bin/lists.asmx), the name of the library to add the folder
to and the name of the folder.

------------
private void createRecordFolder(string strFolderName, string
strWebServiceURL, string strLibraryName)
{
//instntiate the lists.asmx webservice
svcRecords.Lists myList = new svcRecords.Lists();
myList.Credentials =
System.Net.CredentialCache.DefaultCredentials;
myList.Url = strWebServiceURL;

XmlDocument doc = new XmlDocument();
XmlElement batch = doc.CreateElement("Batch");
string item = "<Method ID=\"1\" Cmd=\"New\">" +
"<Field Name=\"ID\">New</Field>" +
"<Field Name=\"FSObjType\">1</Field>" +
"<Field Name=\"BaseName\">" + strFolderName +
"</Field></Method>";

batch.SetAttribute("ListVersion", "1");
batch.InnerXml = item;
myList.UpdateListItems(strLibraryName, batch);

}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top