SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to do something like an SQL query within SP Designer workflows?

e.g I want to do something like "SELECT * FROM list-a WHERE client-id = current-clients-id".

or can someone suggest a different way of approaching the problem

Help much appreciated

share|improve this question
up vote -1 down vote accepted

You cannot run SQL queries within a SharePoint Designer Workflow. But it can be possible when you create an Externel List of the SQL table and use that list within your SPD workflow. This can be done using BCS, external content types and an external list.

share|improve this answer
is is possible to do something like that? i'm looking for something like the 'WHERE' feature really – Sam Dean Feb 7 '12 at 16:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.