We are using a Json object in C# to pass values to POST a new Account to our CRM. Along with this we are passing the primarycontactid with values for first and last name.
This creates the Account along with a Contact that is associated to the Account as the primarycontact.
I t does not associate the Contact to the Account.
we would like to do this all with one call so are there any suggestions on how we should do this?
we are using httpClient1.PostAsync
Here is the current JSON:
accountnumber: "4"
primarycontactid: " 'firstname': 'John' 'lastname': 'Smith' "
name: "Amarillo College VN"
address1_line1: "6222 W. 9th Ave"
address1_city: "Amarillo"
address1_stateorprovince: "Texas"
address1_country: "USA"
address1_postalcode: "79106"
also where can we find out about any more of these tricks where we could consolidate multiple tasks within 1 request?