Calling apex function

Hey Gautam,

I believe you are trying to preview the Skuid page alone and trying to use your class to work as extension.

Did you add this class as an extension to your VF page as Zach explained in above initial posts ?

<apex:page docType=“html-5.0” readOnly=“true” standardController=“Account” extensions=“TestAccountEntrySkuid”>

<skuid:page page=“MySkuidPage”/>

</apex:page>

Try to preview this VF page once created, that should resolve the issue.

Are there any tutorials for building a REST model to access a webservice in apex?

We have been successfully using option 1 mentioned by Zach at the top of this post i.e the AJAX toolkit’s sforce.apex.execute method. But we are receiving errors when we try to expose the same skuid page in the salesforce community. I see an error in the console that indicates it may be an error related to the External resource /soap/ajax/29.0/apex.js that is added to the skuid page. Here is the console error:
apex.js:48 Uncaught TypeError: Cannot read property ‘push’ of undefined
at sforce.Apex.execute (https://stagefull-afl.cs52.force.com/soap/ajax/37.0/apex.js:48:61)
at https://stagefull-afl.cs52.force.com/Customer/resource/1504866722000/AFLInquiryOrderResourceWorkflow…
at Object.callback (eval at (https://stagefull-afl.cs52.force.com/Customer/resource/1495240238000/skuid__JQueryJS:2:13735), :150:64)
at Object.K.aa.when.all.then.c (https://stagefull-afl.cs52.force.com/Customer/resource/1496757765000/skuid__SkuidJS:8:17252)
at Object. (https://stagefull-afl.cs52.force.com/Customer/resource/1495240238000/skuid__JQueryJS:3:7502)
at j (https://stagefull-afl.cs52.force.com/Customer/resource/1495240238000/skuid__JQueryJS:3:6134)
at Object.fireWith [as resolveWith] (https://stagefull-afl.cs52.force.com/Customer/resource/1495240238000/skuid__JQueryJS:3:6946)
at Object.e.(anonymous function) [as resolve] (https://stagefull-afl.cs52.force.com/Customer/resource/1495240238000/skuid__JQueryJS:3:7926)
at Object. (https://stagefull-afl.cs52.force.com/Customer/resource/1496757765000/skuid__SkuidJS:2:6047)
at Object. (https://stagefull-afl.cs52.force.com/Customer/resource/1495240238000/skuid__JQueryJS:3:7502)
sforce.Apex.execute @ apex.js:48

Any ideas?

Just to let everyone know calling apex from skuid in a salesforce community using sforce.apex.execute is not an issue. The above issue was caused by an undefined variable being passed to the apex class. The error message returned was very ambiguous. Hopefully this will save somebody a lot of frustration.

Is there documentation on using classes exposed with REST with Skuid? I must not be setting authorization correctly.

still haven’t been able to get REST to work

Hi Zach, I want to pass list of Ids from skuid to salesforce webservices static method.
Is this possible, if yes please give me suggession.

I want to convert array to list and need to send that list of ids as a parameters.

Thanks,
Sreeram