Solved

Is there a way to get a specific version of a workflow using the API?

  • 2 November 2022
  • 4 replies
  • 51 views

Userlevel 5
Badge +16

I am attempting to clean up workflows in my environment, but I want to archive the code in case its necessary at some point in the future.

https://documentation.commvault.com/2022e/essential/49428_rest_api_get_workflow.html returns the workflows including all their versions.

The workflow definitions can be grabbed using the workflow id, but I don’t see a want to get each version.

 

Am I missing something?

 

It there a way to get a list of the workflow ID for each version of a workflow?

 

thanks.

Chris.

icon

Best answer by Chris Sunderland 2 November 2022, 21:57

View original

4 replies

Userlevel 7
Badge +23

I’ll find out for you, @christopherlecky !

Userlevel 5
Badge +16

I’ll find out for you, @christopherlecky !

Thank you @Mike Struening !

Userlevel 3
Badge +6

Using web api’s, you can get version history via

http://webserver:port/SearchSvc/CVWebService.svc/workflow/{workflowId}/history

 

Then you can get the definition of the specific version via

http://webserver:port/SearchSvc/CVWebService.svc/workflow/{workflowId}/definition?version={version}

Userlevel 5
Badge +16

Thank you Chris.

Reply