• #10794
    Salesforce | Nitish Nitish #344
    Forcetalks

    Created a class for process builder but couldn’t find the class when selecting the apex in add action section?

    public with sharing class ProcessBuilderApexClass {

    public static void PerformAction(list<Id> IdOfLeads){
    list<Lead> leadList = new list<Lead>();
    system.debug(‘IdOfLeads::::’+IdOfLeads);
    leadList = [select id from lead where id IN: IdOfLeads];

    }
    }

    Please help me out in this.

     

    #10825
    Salesforce | Ajit Ajit #343
    Forcetalks

    Hi Nitish

    Your class must use the anotation @invocable

Viewing 2 posts - 1 through 2 (of 2 total)

Please to reply to this topic.

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending

About Us

Forcetalks is a Salesforce collaboration platform for coders & developers, geeks & nerds, consultants & business heads, admins & architects, managers & marketers and of course the business owners. A community where you can learn from, where you can contribute to. For you. For Salesforce. Read More...

Copyright 2019 Forcetalks. All Right Reserved.

Log in with your credentials

or    

Forgot your details?