What are the best options available to call Apex method from Site guest user? How to achieve it?

  • 1
  • Question
  • Updated 1 year ago
  • Answered
Photo of Priya

Priya

  • 478 Points 250 badge 2x thumb

Posted 1 year ago

  • 1
Photo of Chandra V

Chandra V, Champion

  • 6,966 Points 5k badge 2x thumb
I came across this statement in a Skuid tutorial about the Action Framework.  It kind of confirms my suspicion that Guest force users may not have permission to use apex.  You may want to check Salesforce documentation on that limitation.


Run Custom Apex Action

Used to invoke Apex methods within Skuid. To be used with this action type, Apex code must contain InvocableMethods, as well as InvocableVariables for fields within those methods.

  • Apex Action: All properly-annotated invocable methods will appear within the Apex Actionfield picklist; the first method that Skuid detects will likely be selected automatically. If you do not see your method, try refreshing the App Composer.

After selecting a method, each of its invocable variables will also appear as additional fields. As with other Skuid fields, invocable variables can point to various fields with the use of merge syntax.

NOTE

Only authenticated Salesforce users may access invocable methods and run Apex actions.


Using this action type within a Skuid page on a public-facing Force.com site or community is not recommended, as guest users will not have the permissions for proper functionality.