I am running a select statement through Custom Query in workflow but I get an error while running a test: Must declare the scaler variable "@DocEntryID". (Annotation.jpg attached).
But when I declare a variable, I get 0 hits (Annotation 1.jpg attached).
Where am I doing wrong?
Note: It should return a count of 3 as I have tested this query in SQL and it works fine.