Category: Dynamic Apex

using string literals

Literal strings must be enclosed in single quotation marks. double quotation marks are reserved for enclosing attribute values, and must be escaped in strings. Use the “\” character to escape strings. Favorite

Read more

sObjectUtils class, utility

Favorite

Read more

Check InstanceOf of String or ID

Favorite

Read more

Use Set in dynamic SOQL IN-clause in method without Database.query()

LINK LINK2 Favorite

Read more

how to get a picklist all values in apex controller

Apex Dynamic PickList values Favorite

Read more

From the Object Api name retrieving the SObject

  or

Favorite

Read more

How to get FieldSet fields in Apex Dynamically (fieldset name is not static)

You can use result as follows –

Favorite

Read more

Instantiating an SObject Dynamically at Run-time

So how would you create a Generic SObject at run-time?

Favorite

Read more

How to get all the required fields of sObject dynamically

There is no direct property available in Apex dynamic API to represent the required field. However there is another way to know about it. If any field have below three properties then it is mandatory field. If it is Creatable If it is not nillable and If it does not have any default value

[…]

Read more

get all the fields of sObject using dynamic Apex

Favorite

Read more