Activity Forums Salesforce® Discussions How to call apex class in Processbuilder?

  • Kirandeep

    Member
    August 13, 2020 at 4:47 pm
  • Shweta

    Member
    August 13, 2020 at 4:51 pm

    <div>We can call apex class in process builder by following these steps:</div>1. Enter a name for this action.
    2. Choose an Apex class by entering the name of the class to filter results or select a class from the drop-down list.
    3. If the class includes an invocable variable, you can manually enter values or reference field values from a related record.

    • To set values for sObject variables and sObject list values, reference an object’s related records, for example, all child contact records associated with the Account object that started the process.
    • To set a value for a primitive list variable (String, Integer, Time, and so on), select the String value type and enter a value in the text input field. You can’t pass multiple values to lists.

    4. Click on the Save button.

  • Pooja

    Member
    August 14, 2020 at 7:35 am

    1.Enter a name for this action.2. Choose an Apex class by entering the name of the class to filter results or select a class from the drop-down list.3. If the class includes an invocable variable, you can manually enter values or reference field values from a related record.

    • To set values for sObject variables and sObject list values, reference an object’s related records, for example, all child contact records associated with the Account object that started the process.
    • To set a value for a primitive list variable (String, Integer, Time, and so on), select the String value type and enter a value in the text input field. You can’t pass multiple values to lists.

    4. Click on the Save button.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos