You need to sign in to do that
Don't have an account?
VIJAYM
Contact Last name in Fields & Relationships of Contact Object Manager
Hi All,
I would like to display the Contact First Name and Last Name in a trailhead task.
In the Contact Object Manager, Fields & Relationship I am not able to find the First Name and Last Name fields. Seems both are concatenated and updated in Name field.
But how could I know that there is a concatenate happening at the background and why the First and Last Name fields are not displayed in the List.
Thanks
Vijay
I would like to display the Contact First Name and Last Name in a trailhead task.
In the Contact Object Manager, Fields & Relationship I am not able to find the First Name and Last Name fields. Seems both are concatenated and updated in Name field.
But how could I know that there is a concatenate happening at the background and why the First and Last Name fields are not displayed in the List.
Thanks
Vijay
I recommend you to go through about 'Compound' field in Salesforce.
If you would like to create custom compound field, currently that is not possible but there was an idea posted in Salesforce.
https://success.salesforce.com/ideaView?id=08730000000DjHlAAK
Thanks,
Govindaraj.S
All Answers
This is because 'Name' is a compound field.
Compound fields are text fields (some times numbers too) but when you enter 'First name' & 'Last name' and save the record you can't see First name and Last name in detail page you can see only 'Name'.But when you edit the record you can again see First and Last name these type of fields are called Compound fields.
Thanks,
Govindaraj.S
How would I know this Compound field configuration?
How would I know Name is a combination of First Name and Last Name.
In Salesforce we always use API name during development and not label.
If we take Contact Name,
Label : Name
API Name : First Name, Last Name & Salutation
The same applicable for Address fields (compound) too.
Thanks,
Govindaraj.S
When I look for the Name field I could see the Field Name with the Value 'Name'.
Ref: https://developer.salesforce.com/docs/atlas.en-us.sfFieldRef.meta/sfFieldRef/salesforce_field_reference_Contact.htm
As per the above reference, Name label is mapped to 3 API Fields.
Name Salutationpicklist40
Name FirstNamestring40
Name LastNamestring80
Still, I don't understand how the name field is the concatenation of First Name and Last name.
How would I see that configuration in the Application?
Whether it is something internally defined and cannot be seen on the UI?
If i have a similar requirement for the custom Objects then how to configure it.
Adding a formula field Name on the UI which is concatenated of First Name and Last Name?
Please share your valuable suggestions. Thanks.
I recommend you to go through about 'Compound' field in Salesforce.
If you would like to create custom compound field, currently that is not possible but there was an idea posted in Salesforce.
https://success.salesforce.com/ideaView?id=08730000000DjHlAAK
Thanks,
Govindaraj.S
Hello -
I too would have that same question about where in the configuration in the Application you can see this ?? I realize it is in at least one document that describes all of the fields, but... I mean being able to view where in Salesforce it is actually configured like that.
Thanks !!!