You need to sign in to do that
Don't have an account?
Chetan Pradhan
Field to display name of all records of an affiliated/related object (separated by commas)
I am new to Salesforce Development. I want to know if there is a way to display name of all records of an affiliated/related object (separated by commas) in one field using Formula field or trigger, etc. I am looking to have something similar to what you see when try to create a new record type (for Contact, say) under Record Types currently available column. Is it possible? My goal is to use that field in a report or list view to display the related record names.
Thanks!
Thanks!
Please check once following sample code.It will display all child record names in account description field.
Hope this helps you!
Thanks
Varaprasad
@For Support: varaprasad4sfdc@gmail.com
What changes would be there if I am using a Junction object?. Say B is junction object between contact and account.
Thanks again!
If you want to display B records in the account or contact No need to change anything.
accountIds.add(c.accountid);
here you need to select which parent object you need to show child records.
Hope this helps you!
If the above information is informative and useful please mark it as the best answer.
Thanks
Varaprasad
@For Support: varaprasad4sfdc@gmail.com