rflechner / LinqToSalesforce

Presentation
https://rflechner.github.io/LinqToSalesforce/
The Unlicense
13 stars 8 forks source link

Relate Contacts to Accounts #33

Closed ntregillus closed 6 years ago

ntregillus commented 6 years ago

Description

I want to create a relationship between an Account and a Contact. Not sure how I add this relationship...

Repro steps

  1. Step A: create an Account

  2. Step B: create a contact

  3. Step C: ?? how do i create the relationship??

ntregillus commented 6 years ago

It appears i need to use a junction record from this reference of the salesforce api: https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_composite_junction_object.htm?search_text=contact

but I am not seeing how I create one of these with linq to sales force...

ntregillus commented 6 years ago

I'm an idiot. I missed the AccountId field. I'll talk to our salesforce guru to see how we are handling the many to many situation.