Find a Document by Name in a Known Folder
- Opportunity reaches Proposal Follow-up
- Search Items in one known parent
- Check count, type, and completeness
- Select the exact item or request staff review
Business situation
Section titled “Business situation”An opportunity reaches Proposal Follow-up. Staff need the existing proposal link, but the file’s full name varies by revision. The workflow knows the customer folder and a distinctive part of the filename.
What you need
Section titled “What you need”Use a connected HighLevel Location and an IT-approved document-library Drive ID. These examples use fictional values. Insert dynamic fields through HighLevel’s Custom Value Picker; the contact/company examples represent values your workflow must actually populate. Use a stable, non-empty customer naming rule, and validate names before file actions run.
The known parent folder must exist. Agree on what makes a result unambiguous, such as Proposal-DEAL-1042 within one customer folder.
Build the workflow
Section titled “Build the workflow”- Add Pipeline Stage Changed, filtered to Proposal Follow-up.
- Add SharePoint - Search Items, version 1.3.
- Configure the values below, selecting the dynamic customer/deal values through the picker.
- Inspect Item Count, Items, and Has More in a controlled run before designing the next step.
- For one verified match, use its
idin Get Item or itsweb_urlin an internal notification. Do not pass the entire array into Item ID.
| Input | Value |
|---|---|
| Document Library (Drive ID) | Your approved ID; example b!exampleDocumentsDriveId |
| Name Contains | Proposal-DEAL-1042 |
| Parent Folder Path | Clients/Example Client/Proposals |
| Maximum Items to Scan | 500 |
| Maximum Results | 100 |
Know what search means
Section titled “Know what search means”This is case-insensitive name contains matching, on direct children only. It does not recurse, search file contents, or run indexed content search. Results may be files, folders, or other item types; check the returned item_type before acting on one.
Handle the collection deliberately
Section titled “Handle the collection deliberately”- No matches: if Has More is false, notify the team to check the folder/name. If Has More is true, the bounded scan cannot establish absence.
- One match: confirm the name and item type before reusing its ID/link. Has More=true still means another match may exist beyond the scan.
- Multiple matches: stop for an explicit selection or narrow the naming rule; never automatically rename/delete the first match.
Collection selection depends on the HighLevel steps available to your account. If your picker cannot select the required array member, use Get Item By Path with a deterministic filename, or route selection to staff. The action does not turn an array into a scalar Item ID automatically.
Verify, retry, and vary
Section titled “Verify, retry, and vary”Create a test folder containing Proposal-DEAL-1042-v1.pdf and unrelated names. Confirm the matching collection and Scanned Count. Test zero and multiple matches, plus a matching file inside a subfolder: that nested file must not appear.
This read action does not change documents and may be rerun after a transient failure. Results can change between runs. For exact known paths, use Get Item By Path. For a complete direct-child inventory, use List Folder Items.