How to Filter Business Central API Data by User in Power Automate
Question details
The user needs to retrieve Business Central sales invoices that are filtered specifically by the user who triggered a Power Automate flow.

- Product
- Power Automate & Dynamics 365 Business Central
- Device & OS
- not provided
- Scenario
- Configuring a Power Automate flow to dynamically pull user-specific sales invoice data via the Business Central API.
- Observed behavior
- The user requires guidance on configuring the API request, OData filter, and permissions, as well as finding the appropriate support channel for advanced automation queries.
Ensure you have an active Microsoft Power Automate account and the necessary API access permissions configured for Dynamics 365 Business Central.
Consult the Microsoft Power Automate Community
Since configuring advanced OData filters and trigger-user settings requires specialized API knowledge, the official community is the most reliable place for tailored solutions.
Advanced automation queries involving specific OData syntax, API permission scoping, and dynamic trigger-user filtering often fall outside standard troubleshooting. The Microsoft Power Automate Community has specialists dedicated to complex API integrations.
Navigate to the official Microsoft Power Automate Community website.
Use the search bar to look for existing threads discussing 'Business Central API OData filter' or 'filter by trigger user'.
If no existing solution matches your flow, create a new post. Detail your current API request, the OData filter you have attempted, and your goal to retrieve sales invoices associated with the triggering user.

Configure a Basic OData Filter Query
Use dynamic content from the Power Automate trigger to filter the Business Central API call directly within the flow action.
Manage Your Exported Business Central Data with WPS Office
While Power Automate handles your Business Central API workflows and data retrieval, WPS Office is the perfect lightweight and free suite for analyzing those exported sales invoices. Enjoy full compatibility with Microsoft Excel formats to seamlessly generate reports without expensive subscriptions.

Frequently Asked Questions
What is the correct OData syntax to filter by user in Business Central?
Standard OData syntax requires matching the field name to a value, such as `userName eq 'JohnDoe'`. In Power Automate, you place this in the Filter Query field and dynamically replace 'JohnDoe' with the trigger user's dynamic content.
Where can I find the user ID of the person who triggered the flow?
You can extract the user ID or email from the dynamic content menu of your specific trigger. For example, manual triggers and Power Apps triggers usually output a 'User email' or 'User ID' variable.
Why is my Business Central API request failing in Power Automate?
Common causes include incorrect OData filter syntax (such as missing single quotes around string variables), insufficient API permissions for the account executing the flow, or hitting API throttling limits.
Can I export Business Central sales invoices to a spreadsheet?
Yes. You can use a Power Automate flow to retrieve the filtered invoices via the API and then use the 'Add a row into a table' action to populate a spreadsheet, which can then be analyzed locally.




