You need to sign in to do that
Don't have an account?
Contact to Contact relationship
Sorry....probably a pretty basic question for most of you out there, but I am still learning.
I am setting up a small database for enrollment at my school. I have setup the parents names as the "Account" and the children as the "Contacts" that are then tied to that account.
It would be helpful to me if I could identify siblings directly on the Contacts page. In other words, I would like to establish a lookup field on the Contact layout page so that I could easily that John Doe has 1 sister and 1 brother. However, when I try to do this it setup in a parent-child relationship.
I would like to be able to do the lookup, select the sibling record and then have it automatically update the siblings record as well. So it wouldn't be a parent-child relationship but rather a daughter-daughter relationship.
Any ideas?
Hope this makes sense.
Your business requirement is perfect but if you are trying to achieve this by just creating a lookup on the contact, it won't work. You need to write a trigger to achieve this functionality. Whenever you create a relationship, trigger will update it in the other record and same relationship will be created with both the contacts. However there is a limitation, you can only link two contacts (1 self +1 other) in this manner. For an example : In case you want to create relationship with two conatcts (1 self + 2 others), create two lookups say sibling1 and sibling2.
Hope this helps.
Looks like you are a non-profit. Are you using the Non-Profit Starter Pack from Salesforce?
Take a look at these - involves some visualforce but not over the top in terms of complexity:
Sam Arjmandi's Blog Post
Salesfiorce Developer Guide
Salesforce Relationship Documentation
Off the top of my head your query would look something like this:
This will list the First Name and Last Name from the account of the current contact record. If you have other fields you want included, make sure they are in your SELECT statement - i.e. if you have a graduation date field or a homeroom or guidance counselor identified on the contact.
Happy to help more if you need.
OK, so I had a bit of free time on my hands - here's some visualforce code to get you started:
The page (which you then put in your contact page layout)
And the controller:
If you have additional fields you want to include you need to add them to the controller where it defines sibs and then add the columns in the page accordingly. In this case I'm referencing a custom Age field (Age__c) as well as the standard Name.
Hope this helps.