How do I apply a contact to an account?
So I have an account and contact
Account acc = new account {Name = "Ab ..",};
Contact co = new Contact {Name = "John", ..};
And then
CreateOneToManyRequest createOneToManyRelationshipRequest =
new CreateOneToManyRequest
{
OneToManyRelationship = new OneToManyRelationshipMetadata
{
},
Lookup = new LookupAttributeMetadata
{
}
};
CreateOneToManyResponse createOneToManyRelationshipResponse =
(CreateOneToManyResponse)_serviceProxy.Execute(
createOneToManyRelationshipRequest);
Am I on the right track? or is there any other way to connect contacts to accounts?
source
share