Skip to main content
Participating Frequently
Apr 12, 2021 9:42 PM UTC
Solved

Is there a way to delete older versions of a constant using a process model?

HI All,

Is there a way to delete older versions of a constant using any appian function or smart service?

Scenario: I'm calling an API to get the bearer token and storing it in a constant. This is done using a recurring job (PM every 10 mins). But, doing this its creating a version every 10 mins. Is there any way to delete older version systematically?

FYI, 

I understand we can to an alternate approach by storing the value in a db and updating it, But I would like to see if there is any way to delete the older version of the constants.

stefanhelzle0001
Brainy
Apr 13, 2021 3:27 PM UTC

The plugin "Content Tools" has a smart service "Delete Rule/Constant Versions"

4 replies

stefanhelzle0001
Brainy
Apr 13, 2021 6:04 AM UTC

The latest version of the smart service allows to configure whether you want a new version created.

docs.appian.com/.../Update_Constant_Smart_Service.html

Participating Frequently
Apr 13, 2021 3:02 PM UTC

Hello Stefan

Thank you for responding. I would like to delete the older version when a newer version is created.

stefanhelzle0001
Brainy
Apr 13, 2021 3:27 PM UTC

The plugin "Content Tools" has a smart service "Delete Rule/Constant Versions"