You need to sign in to do that
Don't have an account?
scrab
Get Object property value by its name
Hi, I'm Wondering if there is a possibility in Apex, to get the value of a particular object's property by its name (string)
f.i Im doing a lot of similar operations reading objects properties, I would like to put it thorough one fiction which will take a parameter called (fieldName) and will return the value of a field specified by this parameter.
Kind regards
PK
Hi,
it is possible to get values by name for objects.
Please review this documentation and in particular the get method:
http://www.salesforce.com/us/developer/docs/apexcode/index_Left.htm#StartTopic=Content/apex_methods_system_sobject.htm?SearchType=Stem