Case Referral and Complaints Management Access permission sets are required to use this Apex class. Person Accounts must be enabled to retrieve the person accounts.
Usage
The GetAccountsAndContacts class is implemented in the Case Participants section of the Create a Referral Case page in OmniScript.
Specify the Apex class name in the Remote Actions section of the OmniScript page. A Remote Action calls the specified Apex class and its method to retrieve the accounts and contacts.
This screenshot shows how to specify the Apex class name in Remote Actions:
Returns a list of person accounts, business accounts, and contacts based on the specified first name, last name, and city. The method performs a partial or full search based on the input to return the list that matches the criteria.
invokeMethod(methodName, input, output, options)
Returns a list of person accounts, business accounts, and contacts based on the specified first name, last name, and city. The method performs a partial or full search based on the input to return the list that matches the criteria.