3

I'd like to know how can I import an apex class in my Org in a Playground project. I have already logged in my org but when I'm trying to import my apex class, I got this error:
enter image description here

Thanks in advance

  • 3
    Hi dibocor, welcome to SFSE. Please take a moment to scroll through the tour and read How to Ask. Any time you get an error message, you should include it in your question verbatim. Please edit this post to do so, or it will most likely be closed. – Adrian Larson May 29 '19 at 23:48
  • Please include any errors as text, rather than images. The former is searchable and accessible to screen readers and other such devices. The latter is neither. – Adrian Larson May 30 '19 at 0:41
4

No, you cannot call apex methods from playground.

This is documented in the Playground Limitations section on the documentation (emphasis mine).

The playground can’t access Salesforce organizations, so it doesn’t support features that require data from Salesforce.

For example, the playground doesn’t support the wire service, Apex methods, scoped @salesforce modules, or components that require a record ID, like lightning-record-form, lightning-record-view-form, and lightning-record-edit-form.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.