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 Platform Community / Forums / Power Automate / SQL - Get Rows action ...
Power Automate
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

Categories:
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

Forum hierarchy changes are complete!

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

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard