I am trying to write a SQL statement to start a workflow but the data source needs to be a SQL data source rather than the Webcon database.
I have defined the SQL data source (ConnectWise Companies) and it is working OK.
I think the problem is what do I use in the "From" part of my SQL statement. If I omit the From part, when I test my query it does not recognise the column names and says "Invalid column name Company ID, Invalid Column name GroupID"
I have tried using the Objects tab in the Variables editor to select the "ConnectWise Companies" data source but Webcon just resolves that as a number so the SQL staement fails again.
How can I write as SQL statement here to get data from a SQL data source?
Thank you.