kbtudor
asked on
HOW TO: Execute CreateFolder method
This is above me, so I'm asking for more detailed instructions. I've created a data connection in my Infopath form to save attached files to a SharePoint library. It throws an error when there are duplicate file names. From a blog I read to create a new data connection for the WSD web service, using the CreateFolder option. I did this successfully. The blog then states "You can then execute the CreateFolder method. For the input parameter, basically it is just <document library name>/<your desired folder name>." The blog is old, so I'm not sure I can contact the author, but will try there as well. How exactly do I execute the CreateFolder method?
ASKER
Thanks, but I'm looking for a solution from InfoPath, not code writing. I'm thinking I need to create a rule that assigns a folder name to the CreateFolder data query? This is where I'm stuck.
Try creating the complete batch xml (as shown in the link) along with the folder name on your rule and then call the webservice passing the complete xml.
The XML will be static (except for the foldername) that you can then pass to the webservice.
The XML will be static (except for the foldername) that you can then pass to the webservice.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Self-solved. But thanks very much for the input - that got me headed in the right direction!
http://sridharu.blogspot.com/2008/10/createdelete-folers-using-listsasmx-web.html