Salesforce
PDII · Question #213
A developer receives an error when trying to call a global server-side method using the @remoteAction decorator. How can the developer resolve the error?
The correct answer is D. Add static to the server-side method signature. See the full explanation below for the reasoning.
Question
A developer receives an error when trying to call a global server-side method using the @remoteAction decorator. How can the developer resolve the error?
Options
- ADecorate the server-side method with (static=true)
- BChange the function signature to be private static
- CDecorate the server-side method with (static=false)
- DAdd static to the server-side method signature
How the community answered
(29 responses)- A7% (2)
- B17% (5)
- C3% (1)
- D72% (21)
Community Discussion
No community discussion yet for this question.