Home » Salesforce » Certified Platform Developer II » Which of the following about Dynamic Apex is incorrect?
Which of the following about Dynamic Apex is incorrect?
A. You can retrieve the sObject type from an Id by calling .getSObjectType()
B. getDescribe() can get you a variety of info on a particular object/field
C. Schema.getGlobalDescribe() gives you a map of all sObject
D. In dynamic SOQL, you can use bind variables and bind variable fields
Correct Answer: D
Explanation/Reference:
While you can use simple bind variables in dynamic SOQL, you cannot use bind variable fields (e.g. :myVariable.field1_c) Use escapeSingleQuotes to prevent
SOQL injection
How To Pass Certified Platform Developer II Exam?
Certified Platform Developer II PDF dumps.
High quality Certified Platform Developer II pdf and software. VALID exam to help you pass.
|
|
Download Printable PDF. VALID exam to help you PASS.
|
|
Correct answer D: in dynamic SOQL you cannot bind variable fields
C is correct answer.
https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_schema.htm#apex_System_Schema_getGlobalDescribe
D