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
risharisha 

how to create composite key in map

how to create composite key?i have 3 objects  such as A,B,C in that A&B consists a field a,b those are not unique key.but i need to create a map by a,b to create a unique key.pls help me

Ashish_SFDCAshish_SFDC

Hi Risha, 

 

You may create a new field called composite field (or any name) and use a Formula field to concatinate the value in Field A Object A and Field B in Object B. 

 

Cross Object Formula fields work only on Related Objects - if the Objects are not related then you may go for a APEX Class and a Trigger which can do the Job.

 

Regards,

Ashish