callApex()

Makes an Apex call.

Used within a JavaScript app uploaded as a static resource and referenced by lightning:container, this example calls the Apex method getAccount.

When the Apex method you are calling doesn’t require any parameters, pass an empty array.

NameTypeDescription
fullyQualifiedApexMethodNamestringThe name of the Apex method.
apexMethodParametersarrayA JSON array of arguments for the Apex method.
callbackFunctionfunctionA callback function.
apexCallConfigurationarrayConfiguration parameters for the Apex call.

None.