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
roni shoreroni shore 

can we use Account.AccountContactRelation in loop?

can we use AccountContactRelation refrencing Account object like below
If I use like this I get Error: Compile Error: Variable does not exist: AccountContactRelation

For(AccountContactRelation acr : acc.AccountContactRelation){  // here acc is account var


pls suggest

Best Answer chosen by roni shore
roni shoreroni shore
got it, i had to use plural form AccountContactRelations intead of AccountContactRealtion
For(AccountContactRelation acr : acc.AccountContactRelations){  // here acc is account var