Activity › Forums › Salesforce® Discussions › What is Salesforce Dynamic Apex?
-
What is Salesforce Dynamic Apex?
Posted by Aman on September 22, 2018 at 10:34 PMWhat is the dynamic Apex?
Avnish Yadav replied 7 years, 8 months ago 4 Members · 3 Replies -
3 Replies
-
Dynamic Apex enables developers to create more flexible applications by providing them with the ability to “Access sObject and field describe information”, “Write Dynamic SOQL Queries”, “Write Dynamic SOSL Queries” and “Dynamic DML”.
- [adinserter block='9']
-
Map<String,Schema.SobjectType> gd = Schema.getGlobalDescribe();
We can also use schemaDescribe() to create tree structure of all the objects and fields in the schema browser, to do this we need to use the codemap
Map<String,Schema.SobjectType> gd = Schema.getGlobalDescribe();
Returns map of all Sobjects names or Keys to sObject tokens or values for the standard and custom objects defined in the organization.
-
Hello
Dynamic Apex enables developers to create more flexible applications by providing them with the ability to: Access sObject and field describe information
Describe information provides metadata information about sObject and field properties. For example, the describe information for an sObject includes whether that type of sObject supports operations like create or undelete, the sObject’s name and label, the sObject’s fields and child objects, and so on. The describe information for a field includes whether the field has a default value, whether it is a calculated field, the type of the field, and so on.
Thanks.
Log In to reply.