access to @InvocableMethod in Spring 15?

  • 1
  • Question
  • Updated 4 years ago
  • Answered
I've read a couple of blogs about the @InvocableMethod annotation in Apex being available in Spring 15 - just wondering whether we might be able to invoke methods from Skuid pages? My understanding is that its available from the lightning process builder, but it would be awesome to have this in Skuid and would solve some of those 'can we trigger apex from Skuid' questions.

more info here https://help.salesforce.com/apex/HTViewSolution?id=000206831&language=en_US and here https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_annotation_InvocableMetho...
Photo of Greg Jarrett

Greg Jarrett

  • 3,496 Points 3k badge 2x thumb

Posted 4 years ago

  • 1
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
Greg,

We have been working on support for abstract method invocation from Skuid via JavaScript and the Action Framework, but this is not fully ready yet.

At this point our plan is to allow you to invoke methods of either Process.Plugin or @InvocableMethod , if not both --- in my opinion it is ridiculous that Salesforce added another"abstract method invocation" paradigm when they already had somethign going with Process.Plugin. They decided to implement a new way to do things rather than making their old way better (see the comments at the top here). So now if you want to run custom Apex logic from Visual Workflow, you have to write Apex Code that implements Process.Plugin, but for it to be used in Lightning Process Builder, it has to implement @InvocableMethod --- Salesforce could have reused Process.Plugin for both of them, no problem. Probably had something to do with Lightning Process Builder not being as native to the platform as Visual Workflow was required to be. Thus the fact that @InvocableMethods are only "invocable" via the REST API and not via Apex.

Okay I'm done with my rant :)
Photo of Greg Jarrett

Greg Jarrett

  • 3,496 Points 3k badge 2x thumb
Either way it will be awesome.