Notifications
Clear all
Topic starter
28/09/2022 9:55 am
Which of the following about Dynamic Apex is incorrect?
- A . You can retrieve the sObject type from an Id by calling .getSObjectTypeQ
- B . getDescribe() can get you a variety of info on a particular object/field
- C . Schema.getGlobalDescribeQ gives you a map of all sObject
- D . In dynamic SOQL, you can use bind variables and bind variable fields
Suggested Answer: D
Explanation:
Reference:
While you can use simple bind variables in dynamic SOQL, you cann|ot use bind variable fields (e.g. :myVariable.field1_c)
Use escapeSingleQuotes to prevent SOQL injection
Explanation:
Reference:
While you can use simple bind variables in dynamic SOQL, you cann|ot use bind variable fields (e.g. :myVariable.field1_c)
Use escapeSingleQuotes to prevent SOQL injection