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
B1B1 

Please explain dot notation and multidot notation..?

explain the process of dot notation and multi-dot notation in triggers....? eg:- c.MailingCity = accMap.get(c.accountID).BillingCity;

Himanshu ParasharHimanshu Parashar

What do you mean by multidot notation ?

 

In salesforce Object fields accessed using dot notation so if you are writing c.MailingCity then it means you are assigning value to c which is alias of any object.

 

Account c = new Account();

so any field or Account object can be accessed using c.Mailingcity='Test';

 

in your example

 

accMap is a Map collection and in this case dot notation is used to get value from the map using the key which is c.accountID

 

Make sense ?