Skip to main content
Best answer

How to retrieve all rows matching a specific parameter in a MS SQL database column with Zapier?


Did this topic help you find an answer to your question?
19% found this helpful
Show first post

82 replies

JammerS
Forum|alt.badge.img+6
  • Zapier Staff
  • 2374 replies
  • October 27, 2022

Hi @IanKerry 

 

I’ve added your vote for this feature request and we’ll update you via email once available. Thanks!


  • New
  • 1 reply
  • November 9, 2022

Please add me to the list of requestors as well.  Any idea how many requests it takes to get a feature added?  I’m a potential customer working through my use case and without this feature, I don’t see moving forward.  We are querying a MySQL database and attempting to write new/updated records to rows of a SmartSheet.


JammerS
Forum|alt.badge.img+6
  • Zapier Staff
  • 2374 replies
  • November 10, 2022

Hi @kinship 

 

I’ve added your vote for this feature request, we’ll update you via email once available. Thanks!


  • Beginner
  • 1 reply
  • November 23, 2022

Please add my vote.  This is much needed! 


JammerS
Forum|alt.badge.img+6
  • Zapier Staff
  • 2374 replies
  • November 24, 2022

Hi @Jim Case 

 

I’ve added your vote for this feature request, we’ll notify you via email once available. Thanks!


The Agents wrote:

I’m using a Zap to retrieve data from our MS SQL database. I need the zap to retrieve every row that match a certain parameter in a specific column. For instance, I need every row that has invoice # 3511151 in the invoice # column of the table. Is this possible?

Hi @Danvers 

Is there any progress on this?


  • New
  • 1 reply
  • January 22, 2023

Please add my vote.   It’s crazy that it’ll only update one row at a time, it almost renders the app useless!!


JammerS
Forum|alt.badge.img+6
  • Zapier Staff
  • 2374 replies
  • January 23, 2023

Hi @dubbs 

I’ve added your vote for this feature request, we’ll notify you via email once available. Thanks!


  • New
  • 2 replies
  • January 24, 2023

One more vote from me on that please.

Thanks


JammerS
Forum|alt.badge.img+6
  • Zapier Staff
  • 2374 replies
  • January 25, 2023

Hi @MFav,

I’ve added your vote for this feature request, we’ll notify you via email once available. Thanks!

 


One more vote from me


JammerS
Forum|alt.badge.img+6
  • Zapier Staff
  • 2374 replies
  • February 3, 2023

Hi @alkakandilli 

I’ve added your vote for this feature request, we’ll notify you via email once available. Thanks!


Forum|alt.badge.img
  • Beginner
  • 2 replies
  • February 5, 2023

Add me to … seems silly that this request has been in queue for over 2 years.  You’ve enabled a custom SELECT from SQL, but you only allow inserting 1 record.  I’m not even sure how this is helpful.


JammerS
Forum|alt.badge.img+6
  • Zapier Staff
  • 2374 replies
  • February 6, 2023

Hi @saintbrian 

I’ve added your vote for this feature request, we’ll notify you via email once available. Thanks!


BackwoodsMag

Please add me to the vote. 


JammerS
Forum|alt.badge.img+6
  • Zapier Staff
  • 2374 replies
  • March 30, 2023

Hi @BackwoodsMag 

I’ve added your vote for this feature request, and we’ll  notify you via email once an update is readily available. Thanks.


Mark B
  • New
  • 1 reply
  • May 13, 2023

I’ve figured out quite a simple workaround for this.

Firstly you need to run a Find Row via Custom Query in SQL Server statement that selects the key of each of the elements in your list. So if you imagine your table called FOOD is like this:

 

and you want to loop through all the elements that are type ‘Hot’

Run a SQL Select that looks like this:

select replace((stuff((select ',' + str(id) FROM Food where type = ‘Hot’ FOR XML PATH('')),1,1,'')), ' ', '') as ID

That will return a single element with the value ‘2,3’

You then use Create a Loop from Text that loops through each id in the results from above in turn with the sub loop elements able to reference each Key (Id) value in turn so you can update, or read or whatever using other SQL functions.


SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • 7547 replies
  • May 18, 2023

Thank you so much for reaching out here, @Mark B! 😁

We really appreciate you sharing this workaround. I’m sure there are lots of folks in Community that will use it for their Zaps! 🙌


  • New
  • 1 reply
  • July 25, 2023

Add me to this request please.
I kind of understand why you are not implementing this. It's costing you zaps… right? I mean it's super easy to implement


SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • 7547 replies
  • July 25, 2023

Hi @L1dert

Prioritisation for feature requests and bugs is largely dependent on the number of customers affected. I can’t make any promises as to when it would be implemented but I’ve added your vote to the feature request which helps to further increase it’s priority.

In the meantime it might be worth giving the workaround Mark B shared here a try. 🙂


ManorlyDev

I cannot believe this has been open for 3 years! It is so obvious and critical a need. Please add my email to the list.

S Gibbs


SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • 7547 replies
  • August 7, 2023

Sure thing, @ManorlyDev! I’ve added your vote to the feature request so we’ll be sure to notify you as soon as it’s added. I’d recommend giving the workaround Mark B suggested here a try in the meantime. 


asg3
Forum|alt.badge.img
  • Beginner
  • 7 replies
  • August 11, 2023

One more request for this feature.


SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • 7547 replies
  • August 14, 2023

Thanks for reaching out here, @asg3. We’ve added your vote to the feature request and will be in touch by email once it’s added. 🙂


Mark B’s suggestion won’t work if you don’t have a unique column in your data set. I can’t believe it has been 3 years and there still is no solution. MySQL queries return multiple rows all the time!!

Is there any chance this request will ever be addressed? It has been 3 years...