invocable methods not working in Community

  • 2
  • Problem
  • Updated 2 years ago
  • Acknowledged
Trying to use Invocable Methods in Community, and I'm getting a 503 Service Not Available error in the console. I believe the problem is that the POST url is missing the $Site.Prefix - in the console you can see the url it's using - our community is located at ests.force.com/partners so I think it needs to have the /partners added in. 

This may be a Salesforce error more than a Skuid error, but hoping to get some insight here first. I get the same error in Produciton on Spring '16 and Sandbox on Summer '16. 

 
Photo of Jack Sanford

Jack Sanford, Champion

  • 8,322 Points 5k badge 2x thumb

Posted 2 years ago

  • 2
Photo of Rajendra Rathore

Rajendra Rathore

  • 1,480 Points 1k badge 2x thumb
Hi Jack,

yes its due to not passing SitePrefix during make call to invoable apex class.

It's bug of skuid custom action that are not passing SitePrefix when you using that thing community.

For a workaround you can use Ajax request for calling Invoable method using snippet.
In snippet you can get sitePrefix as : skuid.page.sitePrefix 
and pass them with URL.

Hopefully it will work for you :)

Thanks,
Rajendra
Photo of Jack Sanford

Jack Sanford, Champion

  • 8,322 Points 5k badge 2x thumb
Thanks Raj, great solution, that does work. Hopefully this bug will get fixed soon!
Photo of Karen Waldschmitt

Karen Waldschmitt, Official Rep

  • 8,220 Points 5k badge 2x thumb
Jack~

Thanks for reporting this bug. Our devs are aware of it and are considering it for a future release.

Thanks!
Karen