You need to sign in to do that
Don't have an account?
montez
Roll up Unique Contact field value to Parent Account field - Trigger Needed
I need a trigger that pulls all the unique values from Email Domain (custom field) and populates the field Domain Mapping (managed package custom field) separated by a single space and only unique values.
Example:
Account XYZ has three contacts.
Contact 1 has a Email Domain of XYZ.com
Contact 2 has an Email Domain of ABC.com
Contact 3 has an Email Domain of XYZ.com
Accounts Domain Mapping field should be “XYZ.com ABC.com”
Object - Field - API Name
Account - Domain Mapping - Zendesk__Domain_Mapping__c
Contact - Email Domain - Email_Domain__c
Can you help?
Example:
Account XYZ has three contacts.
Contact 1 has a Email Domain of XYZ.com
Contact 2 has an Email Domain of ABC.com
Contact 3 has an Email Domain of XYZ.com
Accounts Domain Mapping field should be “XYZ.com ABC.com”
Object - Field - API Name
Account - Domain Mapping - Zendesk__Domain_Mapping__c
Contact - Email Domain - Email_Domain__c
Can you help?
NOTE: When including code please use the "Add a code sample" button (icon <>) to increase readability and make referencing code easier.
[1] https://appexchange.salesforce.com/developers
I will post my code once I get past the early stage.
[1] https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_string.htm#apex_System_String_join