VMware Cloud Community
kylejw
Contributor
Contributor

Event subscription - Can I access metadata fields from a polyglot action?

I have a few event subscriptions which call vRO workflows, which in turn then call some polyglot actions.  I'm wondering if it is possible to access the metadata fields (i.e. __metadata_hdr_mock) from within the polyglot actions?

 

My goal is to abort execution when a workflow is executing due to a vRA "Test" deployment.  If there is a better way to do this I am open to that as well.

0 Kudos
1 Reply
xian_
Expert
Expert

Being a WF you can mix polyglot and JavaScript items. I'd create a JS scriptable task before your polyglot action, collect and output the required fields as a WF variable and bind it as regular input to the polyglot action following.

0 Kudos