Loading
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Call an Apex Class or an Invocable Action from an Integration Procedure

          Call an Apex Class or an Invocable Action from an Integration Procedure

          To call an Apex class and method, or an invocable action, use a Remote Action and pass in invocation options and data.

          If the data that a remote action returns isn't in Map<String, Object> format, sometimes an Integration Procedure or Omnistudio Data Mapper can’t process it. Because the returned data isn’t an sObject, you can't use it to update Product2 objects without reserializing. You can convert the data in one of these ways:

          An error message that begins with Invalid conversion from runtime type String often indicates a need to reserialize data.

          Make sure that you include the ID in the SOQL query. That field is required because the Apex class retains the queries and serializes data according to what’s executed.

          If you receive an error that says the Apex class can’t be loaded, add the Apex class namespace in the Remote Class field in the remote action like this: {yournamespace}.ApexClassName. For example, omnistudio.PrefillOrders where omnistudio is the namespace and PrefillOrders is the Apex class.

          Note
          Note Users who use Remote Actions in Integration Procedures must have access to the object and record they're invoking through the action. If they receive an access error, they must be granted object and record access at the profile, permission set, or permission set group level.

          To ensure that a Remote Action error causes a rollback if Rollback on Error is checked in the Procedure Configuration, set the errorCode in the class output map.

          Note
          Note Community Plus users must log in before they can use an Integration Procedure Remote Action that sends emails.
           
          Loading
          Salesforce Help | Article