Dynamically change the sharepoint URL in infopath

R

Richard

Hi All,

I'm currently designing an Infopath form that exports to Sharepoint
when complete. However, the Sharepoint library that it is exported to
remains unknown until certain fields in the form are filled out.
Depending on certain feilds the form should submit to different
Sharepoint libraries and even to different sub folders of these
libraries. Does anyone know how I can do this?
Thanks.
 
S

Scott L. Heim [MSFT]

Hi Richard,

You will need to implement this functionality using custom code - the
following Knowledge Base article should help:

How to submit an InfoPath form to a Windows SharePoint Services document
library (826993)
http://support.microsoft.com/default.aspx?scid=KB;EN-US;826993

Best regards,

Scott L. Heim
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.
 
R

Richard

Hi Scott,

Thanks for your help. I am now able to change the library and the
folder that infopath submits to dynamically; however, I am only able to
submit to sub folders that exist. I will need Infopath to be able to
create new sub folders in Sharepoint since these folder names will
depend on a field in the Infopath form. I am currently trying to use
the http://<server-url>/_vti_bin/dws.asmx web service provided by
Sharepoint and using the CreateFolder web method, but I am having no
luck getting it to work through Infopath. Do you know how I can get
this to work?
Thanks.
 
S

Scott L. Heim [MSFT]

Hi Richard,

Theoretically this should be possible; however, I do not have any InfoPath
samples readily available for this. In addition, this code would not be
"InfoPath" specific. You may want to try a post to the Windows Sharepoint
forum to see if they have any sample code (using script/web services) to
dynamically create the folders.

In the mean time, I will see if I can find any samples here as well.

Best Regards,

Scott L. Heim
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.
 

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