+ Start a Discussion

Loop fields

Im trying to find out which field values have changed within a "after update" trigger. Because there're a lot of fields I would like to have all field names in a list and loop the list. But this doesn't seem to work.

Dot notation: Account.name
my way: Account['name'] (doesn't work)

Any idea how I could loop all fields of an object?

Ron HessRon Hess
This is not a current feature, you would use a describe on the sobject but this feature is not available at this time. It is on our roadmap, and will likely be released sometime later this year.