Introduction
The Query Data function in Yeeflow enables retrieving records from a selected data source during a workflow or form action. When you choose a Document Library as the data source (see Document Library overview), you can apply a Path filter to query files or folders within a specific directory.
This capability works in both Query Data actions in workflows (see Query Data Action guide) and Query Data steps in forms (see Query Data Step guide).
When to Use
You can use Path filters with Document Libraries in scenarios like:
Supplier approval workflows: Check whether necessary certificates exist under a specific supplier folder before approval continues.
Business travel requests: Display required travel documents stored in a specific folder for review on a form.
Contract management: Verify files under contract folders to ensure compliance before progressing in the process.
How to Configure Query Data with Path Filter
A. Configure in Query Data Action (Workflow)
Add Query Data in the workflow designer. Select the application and the document library. This example uses Supplier Library.
Under Data filter, select Condition. In the filter, set Path to Equals and pick New Supplier Folder.
Add Type equals file with And to return files. Add Extension equals pdf or a creator condition when those restrictions apply.
B. Configure in Query Data Step (Form Action)
In the form designer’s Actions panel, add Query Data. Select the application and document library.
Under Condition, set Path to Equals and select the folder. Combine the path with a file type, extension, or name condition as needed.
Choose the number of records the form needs and map the returned fields to its variables or list.
Example Condition Setups
Goal | Example Condition Setup |
Query all files in a folder |
|
Query PDF files only |
|
Query files created by user1 |
|
Example Use Case
💼 Business Travel Request Form:
Query and display uploaded supporting documents (e.g., travel insurance, tickets) stored in a designated folder so approvers can review them during approval.
💼 Supplier Approval Workflow:
Automatically check if compliance documents exist in a supplier’s folder. If missing, stop the workflow or trigger a notification.
Summary
✅ The Query Data action (see Query Data Action guide) and Query Data step (see Query Data Step guide) now support Path filtering for Document Library data sources (see Document Library).
By using Path filters, you can:
Query the selected folder. Test a child folder separately if the workflow needs to include it.
Combine with additional conditions (Type, Extension, Creator, etc.)
Test with a matching file, a file in a different folder, and no matching files. Check what the next step does in each case.

