call(action, args)
Signature
public Object call(String action, Map<String, Object> args)
Parameters
- action
- Type: String
- The action to call. The value must be one of the following actions:
- getCalculatedInsight — Invokes the queryCalculatedInsights method of the CdpQuery Apex class, specifying only the ciName, orderBy, and filters parameters.
- hasRecordAccess — Returns true if the current user has access to the specified Account.
- isPersonAccount — Returns true if the specified Account is a Person Account.
- args
- Type: Map<String, Object>
- The arguments passed to the corresponding action. All actions require input, output, and options
arguments, but these arguments can be empty if the action doesn’t use them.
Values listed here are for the input argument.
- getCalculatedInsight — Accepts calculatedInsightName, orderBy, and filters keys.
- hasRecordAccess — Accepts an AccountId.
- isPersonAccount — Accepts an AccountId.
Return Value
Type: Map<String, Object>
The return values of the corresponding action, returned in the output argument.
- getCalculatedInsight — Returns the data property from a CdpQueryOutput object under the calculatedInsightData key.
- hasRecordAccess — Returns true in the hasRecordAccess key if the current user has access to the specified Account. Returns an additional errorMessage key if hasRecordAccess is false.
- isPersonAccount — Returns true in the isPersonAccount key if the specified Account is a Person Account. Returns an additional errorMessage key if isPersonAccount is false.
Usage
To use this method in an Integration Procedure, specify the class in the Remote Class property, the action in the Remote Method property, and the arguments in the Additional Input property.