Filters and Stored Procedure

Certified Associate Developer

I am exporting data from DB and storing into excel , in Export DSE to Excel smart service i need to add filters which will only export data for last month . How can i add this filtter to it .

One Stored Procedure need to create which will delete the dats for last month after fetching from DB . How to create this for 2 different entities which will delete data for last month.

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Senior Developer
    in reply to Prakash

    You have to create the stored procedure into DB and use that stored procedure in Appian by using Execute stored procedure function/Smart Service. Alternate Way is you can use delete from data store entity to delete the data from DB. for this initially, you can fetch the primary keys of the particular entity by using the filter and queryEntity and use those primary key variable in identifier config of the same Smart service or function(delete from datastore entity). Other than that, you can use query database smartservice as well to delete the data from DB based on conditions.

Children
No Data