Which of the follow...
 
Notifications
Clear all

Which of the following about Dynamic Apex is incorrect?

1 Posts
1 Users
0 Likes
29 Views
Zachariah
(@schultzachariah)
Noble Member
Joined: 7 months ago
Posts: 371
Topic starter  

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

Show Answer Hide Answer

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

   
Quote
Share: