You need to sign in to do that
Don't have an account?
Onki
Dynamic Trigger Filed Name
Please Helpe to solve this
I want access Trigger value with dynamic Name
Trigger.New[0].Name - It will return Name value
i need these thing like
string Name1 = 'Name';
Trigger.New[0].Name1 ---- I want do this way
can any one help to do this or this will not possible?
You can do as follows.
for(Account a : Trigger.New)
{
system.debug('##a.Name##:'+a.Name);
}
Does this helps you?
Yes, you can use Dynamic Apex to achieve it. I am not sure of the exact syntax but you can go through the following example:
http://wiki.developerforce.com/index.php/Sorting_Tables