Skip to content

Pass Discovered VM IP/hostname to custom button #23089

Answered by Fryguy
RADHIKA500 asked this question in Q&A
Discussion options

You must be logged in to vote

This wouldn't typically be done in the dialog, because as you're trying to do, you'd prefer it done automatically. Instead, the custom button should be connected to an Automate entry point and part of the incoming Automate playload is the object on which the custom button was clicked (in this case the VM). From there you can get any details you need from the VM object via $evm.root['vm']. In Automate there is also $emv.root['vmdb_object_type'] which will allow you to know the where the Automation method is being called from (if a custom button on a Vm, it should be set to 'vm' for example.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jrafanie
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants