Loading...
「ツール」は右上に移動しました。
利用したサーバー: natural-voltaic-titanium
0いいね 346回再生

Q & A with Matt K! Apex Error: Method does not exist or incorrect signature: void...

Kicking off the new year with a new series: Q & A with Matt K!

Matt sits down weekly to tackle Salesforce questions from the community - unrehearsed and unedited to demonstrate what it looks like when we encounter, evaluate, troubleshoot, and resolve real-world issues and use-cases.

This time, Matt's taking a look at an Apex error message that a lot of new Salesforce devs may encounter (in fact, this episode was almost called "Dont' Make this Mistake as a New Dev!).

That error is:
"""
Method does not exist or incorrect signature: void getGlobalDescribe() from the type Schema
"""

You may have a different function than "getGlobalDescribe()" and a different type than "Schema", but this is a common error, that's tricky to troubleshoot, if you're new to the platform because it involves some reserved-but-not-reserved keywords for classes because they exist as objects in Salesforce.

For the restricted Apex keywords, take a look here: developer.salesforce.com/docs/atlas.en-us.apexref.…

And for the unrestricted-but-restricted keywords, this is a good jumping off point: developer.salesforce.com/docs/atlas.en-us.object_r…

Hopefully this'll help some new SF developers avoid this headscratcher before it turns into a hair-puller!

And if you've got a question you'd like Matt to answer, leave it in the comments here so we can add it to a future video!

Until next time, keep working hard, smart, and happy. And we'll see you in the cloud!

コメント