Skip to content

Find a Document by Name in a Known Folder

Find a Document by Name in a Known Folder workflow
  1. Opportunity reaches Proposal Follow-up
  2. Search Items in one known parent
  3. Check count, type, and completeness
  4. Select the exact item or request staff review

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.

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.

  1. Add Pipeline Stage Changed, filtered to Proposal Follow-up.
  2. Add SharePoint - Search Items, version 1.3.
  3. Configure the values below, selecting the dynamic customer/deal values through the picker.
  4. Inspect Item Count, Items, and Has More in a controlled run before designing the next step.
  5. For one verified match, use its id in Get Item or its web_url in 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

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.

  • 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.

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.

Next: Move and rename the resolved document →