Skip to main content
July 20, 2023
Question

Scripts - Queries

  • July 20, 2023
  • 8 replies
  • 0 views

Hi Team,

Is there a direct to execute the SQL scripts directly in Appian instead of executing in DB?

    8 replies

    July 20, 2023

    Hi Purvaja,

    Could you please share the scenario?

    stefanhelzle0001
    Brainy
    July 20, 2023

    What do you want to achieve?

    July 20, 2023

    Thanks for the reply.

    To be clear, a sample query something like this.

    SELECT * FROM `lam_leaves` WHERE leave_type_id in (SELECT leave_type_id from lam_leave_type) GROUP BY from_date;
    

    How complex query we can directly use in Appian. generally approach is we are using SP to query and store it in temp table and then capture the result from it.

    stefanhelzle0001
    Brainy
    July 20, 2023

    Did you try to use the latest data fabric features? Synced records and record relationships?

    July 20, 2023

    You can use Query Database Smart service

    docs.appian.com/.../Query_Database_Smart_Service.html

    mathieud0001
    Brainy
    July 21, 2023

    Another way to do it is to use the new JDBC connected system (available in 23.2)

    docs.appian.com/.../custom-jdbc-connected-system.html