callAction
fun callAction(objectId: ObjectID, actionName: String, params: Map<String, Any> = emptyMap()): SwitchboardResult<String>
Calls an action on the object with the specified object ID.
Return
A result containing the return value of the action if successful, or an error if failed.
Parameters
objectId
The object ID of the object to call the action on.
actionName
The name of the action to call.
params
Optional parameters for the action. Defaults to empty.