This activity downloads SharePoint documents and folders to the local disk.
The following wildcard specifiers are permitted in the search pattern:
Wildcard character:
*? – Exactly zero or one character.
* – Zero or more characters.
Characters other than the wildcard specifiers represent themselves. For example, the search pattern string “*t” searches for all names in the path ending with the letter “t.” The search pattern string “s*” searches for all names in the path beginning with the letter “s.”
Note: When using the asterisk wildcard character in a search pattern, such as “*.txt,” the matching behavior differs depending on the extension length:
- A search pattern with an extension of exactly three characters returns files with extensions of three or more characters, where the first three characters match the specified extension.
- A search pattern with an extension of one, two, or more than three characters returns only files with extensions of exactly that length, matching the specified extension.
When using the question mark wildcard character, this method returns only files that match the specified extension. For example, with “file1.txt” and “file1.txtother” in a directory:
- The search pattern “file?.txt” returns just the first file.
- The search pattern “file*.txt” returns both files.
The following list shows search pattern behavior by extension length:
- “*.abc” returns files with extensions such as .abc, .abcd, .abcde, etc.
- “*.abcd” returns files with the exact extension .abcd.
- “*.abcde” returns only files with the extension .abcde.
- “*.abcdef” returns only files with the extension .abcdef.
SharePoint Workflow Designer Phrase
Download all documents from this folder URL to this local folder. Recursive Yes. Overwrite existing documents.
Parameters
Parameter | Description |
All | Optional. Search pattern to match against file names in the path. The parameter cannot end in two periods (“..”) or contain two periods (“..”) followed by “\” or “/”, nor can it contain invalid path characters. An empty search pattern returns all files. |
this local folder | The path to the local folder. Example: c:\temp\ |
this folder url | Full URL of the folder. Example: http://mysharepoint/MyDocs/Shared%20Documents |
Yes | Set to Yes to download files recursively from subfolders. Set to No to download files only from the current folder. |
Overwrite | Specifies whether to overwrite an existing file: – Overwrite – Overwrites the existing file. – Do not Overwrite – Skips files that already exist in the local folder. |
Keep original date | Specifies whether to keep the original file dates: – None – Do not modify. – Created – Keep the original created date. – Last Modified – Keep the original last modified date. – Created and Last Modified – Keep both dates. |