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
ajinkya shahane 1ajinkya shahane 1 

custom object classification - merging multiple records into single row entry

I have one Custom Object named as Contact Relationships in which contacts are mapped.
it is mapped with account and opportunity object
when particular account want to mapp the contact relationship it will call the visual force page having following fields

Account  - Lookup
Contact  - Lookup
Relationship type - picklist
Inactive Relationship - checkbox

When we fill up all this fields say Contact Record XYZ is saved with relatioship type YYy

again If i want to create contact relatioship of same contact with diffrent relationship type

So for contact I will have muliple records stating diffrent relatioship type and inactive relationship type

I want to merge this multiple records for single contact into single record with showing the relationship type and Inactive relationship type check box

Please suggest