Menu
SharePoint Workflow Extensions Kit

Upload documents from folder

This activity uploads SharePoint documents and folder from local disk.

The following wildcard specifiers are permitted in search pattern.

**Wildcard character: **

* - Zero or more characters.

? - Exactly zero or one character.

Characters other than the wildcard specifiers represent themselves. For example, the search pattern string "*t" searches for all names in path ending with the letter "t". The search pattern string "s*" searches for all names in path beginning with the letter "s".

Note: When using the asterisk wildcard character in a search pattern, such as "*.txt", the matching behavior when the extension is exactly three characters long is different than when the extension is more or less than three characters long. A search pattern with a file extension of exactly three characters returns files having an extension of three or more characters, where the first three characters match the file extension specified in the search pattern. A search pattern with a file extension of one, two, or more than three characters returns only files having extensions of exactly that length that match the file extension specified in the search pattern. When using the question mark wildcard character, this method returns only files that match the specified file extension. For example, given two files, "file1.txt" and "file1.txtother", in a directory, a search pattern of "file?.txt" returns just the first file, while a search pattern of "file*.txt" returns both files.

The following list shows the behavior of different lengths for the search pattern parameter:

"*.abc" returns files having an extension of .abc, .abcd, .abcde, .abcdef, and so on.

"*.abcd" returns only files having an extension of .abcd.

"*.abcde" returns only files having an extension of .abcde.

"*.abcdef" returns only files having an extension of .abcdef.

You can use bulk update property to update fields of all uploaded files.

SharePoint Workflow Designer Phrase

Upload all files from this local folder to this folder url folder. Recursive Yes. Overwrite existing document. Use bulk update to update fields

Parameters

Parameter Description
All Optional. Search pattern. The search string to match against the names of files in path. The parameter cannot end in two periods ("..") or contain two periods ("..") followed by “\” or “/”, nor can it contain any of the invalid path characters. Empty search pattern returns all files.
this local folder The path to local folder. Ex: c:\temp\
this folder url Full url to folder. Ex: http://mysharepoint/MyDocs/Shared%20Documents Set No to upload files from current folder only.
Overwrite Overwrite – activity would overwrite existing file Do not Overwrite – activity skips file if file exists in the SharePoint folder
bulk update Optional. Bulk update string. Includes field name and value lines. [FieldName1]=[Value1] … [FieldNameN]=[ValueN] Note: Use vti_titlte field to update title Use ModerationInformation.Status field to update content approval status for an item. Use ModerationInformation.Comment field to update comment that addresses why the item was approved or rejected. **Example: ** Description=Test Description Start Date=2010-12-10T12:30:00 Published=1 Choice=My Choice #3 Lookup=12;# vti_title=My Super Title ModerationInformation.Status= Approved
Keep original date None – don’t modify Created – set original Created date Last Modified – set original Last Modified date Created and Last Modified – set original Create and Last Modified date
Trigger create event Indicates that activity triggers item created event. Default value No. Note: Can loop workflow activities, if set YES.