Hi all,
I'm currently designing a post-deployment process and I need to be able to query database tables dynamically based on the application being deployed. I’ve tried using the Query Database smart service with variables such as ac!table, but I get an error each time.
ac!table
I’ve also tried setting the full SQL statement in an ac! variable to create the complete query and pass it, but this approach hasn't been successful either.
ac!
Has anyone encountered a similar issue or can suggest a solution to dynamically query tables based on deployment context? Any insights would be greatly appreciated!
Thanks in advance!
Discussion posts and replies are publicly visible
Pretty sure you can't do that since Appian uses prepared statements to prevent SQL injection. Your best best is probably to implement a Stored Procedure.