function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Leo DarkstarLeo Darkstar 

How to invoke this method ?

I am calling a class with a Process Builder. There are two methods in the class. I have an @InvocableMethod in front of the first method. Do I also need one in front of the second one, or will the first one also trigger the 2nd method ? Also, the 2nd one has a @Future annotation in front of it. Is it possible to use @InvocableMethod along with a @Future annotation ? 

Here is the 2nd method of the class. I didn't include the entire class because I was hoping to keep this as simple as possible. 

    public static void pardotCallout(String contactId) {
        String returnedResponseFromPardot = Http_Utility_Pardot.pardotCreateProspect(new Set<Id> {contactId});
        System.debug('TESTER DEBUGGER-POST-FUTURE');


Thank you for any help you can give. 
SwethaSwetha (Salesforce Developers) 
HI Leo,
Do the below articles help-

Happy to discuss further. Thanks