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
Sajila KadayaprathSajila Kadayaprath 

Error : Unknown annotation: InvocableMethod salesforce

I am trying to invoke apex code using a flow. But while using the invocable method in apex class, I am getting the following error :
Unknown annotation: InvocableMethod salesforce

Please advice.

Thanks,
Sajila
Sagar PareekSagar Pareek
Are you using REST API to invoke flow?
Sajila KadayaprathSajila Kadayaprath
I am trying to call the class from flow. But I couldn't implement the annotation in the class.
Following is the error :
Error : Unknown annotation: InvocableMethod salesforce
jagjeet singh 5jagjeet singh 5
Hi Sajila,
 Update the api version of the apex class to 33.0 and it should work.
 Let me know if it helps.
Thanks,
Jagjeet Singh