VMware Cloud Community
MarcCox
Contributor
Contributor
Jump to solution

Vcenter Orchestrator (5.5.3) Is there a way to enter a "current date" in the "description" parameter of the prebuild createSnapshot module?

Hello,

I would like to use the pre-define "com.vmware.library.vc.vm.snapshot --> createSnapshot" module in VCO (5.5.3) to schedule snapshot on a weekly basis. The description parameter is a "string", is it possible to generate an automatic entry with the current date of the snapshot every time the workflow is ran?

actionResult = System.getModule("com.vmware.library.vc.vm.snapshot").createSnapshot(vm,name,description,memory,quiesce) ;

Thanks

Message was edited by: MC

0 Kudos
1 Solution

Accepted Solutions
MarcCox
Contributor
Contributor
Jump to solution

OK,

I answered my own question.

I create a scriptable task at the beginning of the workflow to store the current date to a "today" parameter, then pointed the description parameter of the createSnapshot module to "today" attribute. works perfect.

View solution in original post

0 Kudos
1 Reply
MarcCox
Contributor
Contributor
Jump to solution

OK,

I answered my own question.

I create a scriptable task at the beginning of the workflow to store the current date to a "today" parameter, then pointed the description parameter of the createSnapshot module to "today" attribute. works perfect.

0 Kudos