This activity checks if an item exists in a document library.
Parameters
Input parameters
Parameter | Description | Example |
Current item (optional) | Item id which existence you want to check. If value is empty, the current item ID library from workflow context will be used. | 5, [%Variable:ItemID%], Current Item:ID |
Current document library (optional) | Document library id (guid) or title which item existence you want to check. If value is empty, the current document library from workflow context will be used. | /sites/my site/Documents/Subfolder 1/Subfolder2; /Root Documents Library |
Document library [with folder] | Destination URL. Relative URL of document library [with folder]. | /sites/my site/Documents/Subfolder 1/Subfolder2; /Root DocumentsLibrary |
Variable | Variable (set by this activity). Contains true if item exists in destinationlibrary. | |
Site URL (optional) | The URLs of a SharePoint site where you want to check a document library for an item. | https://contoso/SiteUrl; https://contoso/Sites/SiteUrl;[%Workflow Context:Current Site URL%]subSite |
Example