web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

SQL - Get Rows action will fail when using Filter Query

(0) ShareShare
ReportReport
Posted on by 256

Hello,

There is some best practices, or good documents that explain the "Filter Query" option when getting some data?... because I hardly can make it work when using SQL or SharePoint data.

 

I have a simple task to "sync" a SharePoint list with an SQL database:

 

SQL-GetRows-Failed.png 

 

But the "Get rows" action will work properly only for a new record in the SP list, when "Get records" will have nothing to return.

If the SP list is updated, meaning the SQL DB will contain an existing record with the same name, the "Get Rows" action fill fail with the following error:

 

The API 'sql' returned an invalid response for workflow operation 'Get_rows_(V2)' of type 'OpenApiConnection'. Error details: 'The API operation 'GetItems_V2' requires the property 'body/value/0/NameStyle' to be of type 'String' but is of type 'Boolean'.'

 

I have tried the Filter Query option in different flavors:

 

CommpanyName eq 'Company 5' (hardcoded company name)

CompanyName eq '@{triggerOutputs()?['body/Title']}' (dynamic company name from SP list)

startswith(CompanyName,'Company 5') (using functions)

 

But everytime had no luck. 

Is there a way to make it work with "Filter Query"?

 

Kind Regards,

Lucian

I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 535 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 348 Moderator

#3
developerAJ Profile Picture

developerAJ 262

Last 30 days Overall leaderboard