Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

How can I filter array with values from Get Rows (SQL)

Hello all!


I have a GoogleSheet and need insert records into SQL.

The first insert is OK! But the next, I have an error because the PK already exist.


So, I need GetRows from GoogleSheet and GetRows from my SQL Table.

Then I need do a "Filter Array" (Google Sheet) with the records when ID (Google Sheet) not exist in SQL Matrix/Table.


Well, how can I do the last step?

Can you help me?

Super User
Super User



First read all the Google Sheet records. Read each record by using an apply to each loop. Then use the SQL filter query to filter by google sheet record id. Add an IF condition to check if it returned any record or not. If no record then add the record in SQL.


See this thread about how to filter the SQL records.


Solved: Syntax Error - Sql Get Rows - Filter Rows OData - Power Platform Community (



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up

Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials

Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,147)