Tuesday, July 22, 2014

How to make dynamic reference in apex code

So we are used to develop apex code with static reference. What it means is the code is referencing the object directly and when this code is moved in a package then the referenced object will automatically be included in it. But it might happen that you only need the code to be included in the package as the object is already present in the install org.

Static reference code:

Dynamic reference code:

No comments:

Post a Comment