function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
micwamicwa 

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.