Make the table you insert data into as an variable input in a sql command service
I am working with thingworx 9.5.
I want to use the insert into sql database command. I want to have the database I want to insert the data into as a variable input, but this doesn't seem to be possible. I made an example of how I am trying it but I keep receiving errors:
insert into [[Table]] (logid,message,source,category,servicename,level,country)
values ([[LogID]],[[Message]],[[Source]],[[Category]],[[ServiceName]],[[Level]],[[Country]]);
When I change the [[Table]] parameter by the name of the db, all is fine.
error returned is:
Execute Update failed: org.postgresql.util.PSQLException: ERROR: syntax error at or near "$1" Position: 13
Does anyone have a workaround for this?
Kind regards

