I have used the following code for folder creation only in document library via list item creation workflow
SPListItem CurItem =
workflowProperties.Item;
SPSite MySite = new SPSite(workflowProperties.WebUrl);
SPWeb Myweb = MySite.OpenWeb();
SPDocumentLibrary spdoclibrary = (SPDocumentLibrary)Myweb.Lists["My Documents"];
Myweb.Folders.Add(workflowProperties.WebUrl + "/My%20Documents/" + CurItem["Title"].ToString());
spdoclibrary.Update();
Another Way:-
SPList splstDoc = Myweb.Lists["My
Documents"];
SPFolderCollection folderColl = splstDoc.RootFolder.SubFolders;
SPFolder newFolder =
folderColl.Add(workflowProperties.WebUrl + "/My%20Documents/"
+ CurItem["Title"].ToString());
I have used the following code for file along with properties creation in document library via list item creation workflow
Hashtable objhash = new Hashtable();
byte[] byt = new byte[Convert.ToInt32(FileUpload1.PostedFile.ContentLength)];
objhash.Add("custom
field name", "value");
SPFolder myfolder =
Myweb.GetList(workflowProperties.WebUrl + "/My%20Documents/").RootFolder;
myfolder.Files.Add("Test.txt",
byt, objhash, false);
myfolder.Update();
I have used the following code for folder along with properties creation in document library via list item creation workflow
SPFolder myfolder =
Myweb.GetFolder(workflowProperties.WebUrl + "/My%20Documents/");
SPFolder spfolder =
myfolder.SubFolders.Add(workflowProperties.WebUrl + "/My%20Documents/"
+ CurItem["Title"].ToString());
spfolder.Item["Title"]
= "Aasai";
spfolder.Item["Test"]
= "Aasai";
spfolder.Item.SystemUpdate(false);
Thanks for Information Microsoft SharePoint is a Web application platform developed by Microsoft. The web tools which are designed for the purpose of non-technical users so they can easily Use them. SharePoint can be used to provide intranet portals, document and file management, collaboration, social networks, extranets, websites, enterprise search and business intelligence. It also offers system integration, process integration and workflow automation capabilities. Sharepoint Online Training
ReplyDeleteGreat and really helpful article! Adding to the conversation, providing more information, or expressing a new point of view...Nice information and updates. Really i like it and everyday am visiting your site..
ReplyDeleteSharepoint Training in Chennai
sharepoint service @ desss.com at low cost
ReplyDeleteGOOD Article !! Thanks for sharing..
ReplyDeleteSharepoint Online Training
Sharepoint Training
Jsontextwriter Example in C#, VB.NET
ReplyDeletehttp://expertwebcode.blogspot.com/2019/01/jsontextwriter-example-in-c-vbnet.html
Salesforce Interview Questions with Answers Part 4...
http://expertwebcode.blogspot.com/2018/01/salesforce-interview-questions-with_4.html
android kotlin - AlertDialog setSingleChoiceItems ...
http://expertwebcode.blogspot.com/2018/04/android-kotlin-alertdialog.html
android kotlin - DataBinding visibility example
http://expertwebcode.blogspot.com/2019/01/android-kotlin-databinding-visibility.html
INVALID_QUERY_LOCATOR, Unable to find query cursor...
http://expertwebcode.blogspot.com/2019/05/invalidquerylocator-unable-to-find.html
System.ListException: Before Insert or Upsert list...
http://expertwebcode.blogspot.com/2013/10/systemlistexception-before-insert-or.html
The Version of Visual Studio you are running matte...
http://expertwebcode.blogspot.com/2019/01/the-version-of-visual-studio-you-are.html
android - MaterialCardView example
http://expertwebcode.blogspot.com/2019/01/android-materialcardview-example.html
Folder Creation in SharePoint 2010 Document Library
ReplyDeleteVery informative post...
SharePoint Web Development
SharePoint Development Services
Smm Panel
ReplyDeleteSmm Panel
iş ilanları
instagram takipçi satın al
hirdavatciburada.com
beyazesyateknikservisi.com.tr
servis
tiktok jeton hilesi
çekmeköy beko klima servisi
ReplyDeleteataşehir beko klima servisi
maltepe lg klima servisi
kadıköy lg klima servisi
maltepe alarko carrier klima servisi
kadıköy alarko carrier klima servisi
maltepe daikin klima servisi
kadıköy daikin klima servisi
kartal beko klima servisi