selectMacro()

Selects and displays a specific macro in the macro widget. This method is only available in API version 36.0 or later. This method isn’t supported in Lightning Console.

NameTypeDescription
callbackfunctionJavaScript method that is called when the method is completed
macroIDstringID of the macro that’s selected

This method is asynchronous, so it returns its response in an object in a callback method. The response object contains the following field:

NameTypeDescription
causestringExplanation of function failure, if applicable
successbooleantrue if selecting the macro was successful; false otherwise