Skip to main content
Participating Frequently
April 12, 2021
Solved

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

  • April 12, 2021
  • 4 replies
  • 0 views

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.

Best answer by stefanhelzle0001

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

4 replies

stefanhelzle0001
Brainy
April 13, 2021

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
April 13, 2021

Hello Stefan

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

stefanhelzle0001
Brainy
April 13, 2021

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