Dynamics CRM API

Dynamics CRM API.

I was able to create LEAD using Dynamics CRM API. and it is great.
Now I also want to create CONTACT record after LEAD is created and create Parent to child relationship. E.g.

I have a web form and ask for father full name and I will add father full name into LEAD entity (1 records)
2nd step, I have a web form and ask for how many kids, if 2 then, two kid full name will be created into CONTACT entity (2 records)

On Dynamics, what Do i need to do to make LEAD/CONTACT has relationship inside of the database?
LVL 1
ITsolutionWizardAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Feridun KadirPrincipal ConsultantCommented:
When you qualify a lead to convert it to a contact (or account), Dynamics automatically sets a field called orginatingleadid which links the contact back to the lead.

However, that field is read-only so you can't set it.

Why not convert the father lead into a contact and then add the kid contact records and set the parent customer field on the kid contacts to the father contact, could that work for you?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ITsolutionWizardAuthor Commented:
it is good suggestion. but our website already have all of the family information from parents to kids.
when somone click on the submit button on the website, we already assumed that they highly interest our product, and that is why I hope to have LEAD and CONTACT entity has all information ready to avoid any data entry for my call center team.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Databases

From novice to tech pro — start learning today.