RAW SQL Step Throwing Error?

in Flows
Greetings,
I'm using a RAW SQL step to fetch accounts based upon certain criteria. However, when I began testing, I was running into an error as soon as I add any sort of "WHERE" clause. The error is something like "Error message: Invalid column name". I'm trying to connect to an SQL DB. Am I doing something wrong? Here's what test query looks like:
Comments
-
Hello!
That error message is most likely indicative of a syntax error. You'll want to be sure you use single quotes around variables (even those passed-in from the flow) when making a SQL query. Your query should run if you were to type this:
SELECT * FROM entity_account
WHERE account_id = 'your variable'
Hope this helps!
-Gregory
Howdy, Stranger!
Categories
- 4.4K All Categories
- 78 General
- 13 Training
- 209 Installation / Setup
- 1.1K Flows
- 110 Rules
- 270 Administration
- 213 Portal
- 497 General Q & A
- 709 Forms
- 345 Reports
- 3 Designer Extensions
- 48 Example Flows
- 58 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 186 Pages
- 5 Process Mining
- New Features
- 186 Datastructures
- 70 Repository
- 229 Integrations
- 29 Multi-Tenant
- 27 SDK
- 81 Modules
- 59 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 143 Lunch And Learn Questions