You need to sign in to do that
Don't have an account?

Problem while viewing a contact
HI Every one,
I am creating account and contact for a user with a trigger. After creating an account, I am getting that account Id and creating contact for that user. Here I am using Maps to do this (ContactRec.accountid=Map_Account_To_Id.get(c.Organization_Name__c);). This is working well.
But the problem is, when I click on contact Name to view, its redirecting to accounts page. I am unable to view the contact.
How to avoid this. Please help me.
Thanks
I think the problem is creating Contact as you are associating thre new contact to the created account. check the assignment of the acount id to Contact that needs to be created
as like
new Contact(){contact.AccountId=accId, and rest of fields};