VMware Cloud Community
FredericSOSSON
Contributor
Contributor

Search for workflows changed in the last few days or weeks

Dear Community,

Version of Orchestrator I have is 7.6, I need to build a list of workflows that have been changed in the last few days or weeks.

Is there a view for that or do I have to write a workflow?  If I have to write a workflow can you please help me to start?

Thanks in advance,

Frederic

Reply
0 Kudos
2 Replies
iiliev
VMware Employee
VMware Employee

It depends on what you mean by 'changed' - workflow has been edited/saved, or the version of the workflow has been incremented?

You can write a workflow that will iterate over all available workflows (using Server.findAllForType("Workflow")), and then for each workflow examine either its property 'logEvents' (to find those that refer to workflow was saved, the saving date is in property 'logTimeStamp' of the log event) or property 'versionHistoryItems' (the date when the version number was bumped is available in the property 'date' of the version history item).

Let me know if you need further help with the above.

FredericSOSSON
Contributor
Contributor

Hi Ilian,

I need to know which workflows have been edited during the last 30 days (for ex.), every time a change is made I increase the version.

I will try using Server.findAllForType("Workflow") as you advised

Thanks a lot

Reply
0 Kudos