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
betterbhushanbetterbhushan 

Update Multi-Picklist on updating custom object

I have custom object KeywordAccountAssociation__c. This object has three fields

  1. Account__c - Master-Detail(Account)
  2. Keyword__c - Master-Detail(Keyword)
  3. Compositecp__c - Text(255) (External ID) (Unique Case Sensitive)

I have a custom field in Account

  • DD_Segment__c - multi-picklist

Now I want to update (Insert is fine too) values of DD_Segment__c wheneverKeywordAccountAssociation__c is updated. I could write trigger for this but I don't know how? I am new to Salesforce Development and my background is ruby (so getting accustomed to apex is bit difficult for me).

KeywordAccountAssociation__c has multiple rows of Account__c which has same account_id and those account_id are related to a record of custom object Keyword__c. I want to get all keywords related to one account and update in its (account's) multi-picklist. How can I achieve this? If you have doubts about this please do ask. Thanks!