Skip to main content
Solved

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

  • November 2, 2022
  • 4 replies
  • 77 views

christopherlecky
Explorer
Forum|alt.badge.img+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.

Best answer by Chris Sunderland

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}

4 replies

Mike Struening
Vaulter
Forum|alt.badge.img+22

I’ll find out for you, @christopherlecky !


christopherlecky
Explorer
Forum|alt.badge.img+16

I’ll find out for you, @christopherlecky !

Thank you @Mike Struening !


Forum|alt.badge.img+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}


christopherlecky
Explorer
Forum|alt.badge.img+16

Thank you Chris.