Which of the follow...
 
Notifications
Clear all

Which of the following about Dynamic Apex is incorrect?

1 Posts
1 Users
0 Likes
151 Views
(@schultzachariah)
Noble Member
Joined: 2 years ago
Posts: 745
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

Latest Salesforce PDII Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: