Hi Prashant, sorry for the delayed reply. What kind of shortcut do you have in mind?
Payload of execute afm is a json object containing references to your metadata objects (attributes, metrics, ...).
There might be a simpler way to do it using our UI SDK (which uses react) - you will first need to export a catalogue of metadata objects in your workspace and then you can use
this.