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. 
 

@future(callout=true) 
    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-
https://salesforce.stackexchange.com/questions/120012/problem-with-process-builder-invocable-method-and-webservice-call-out
https://salesforce.stackexchange.com/questions/202350/invocablemethod-process-pluginresult-and-future
https://salesforce.stackexchange.com/questions/298678/can-i-use-multiple-annotations-in-one-apex-class

Happy to discuss further. Thanks