Forum Discussion

adambilcich's avatar
25 days ago

SDK Create Customer with Address

When creating a new Version2.Contact.Customer in the .Net SDK, as the addresses field is an ienumerable you cannot create a new address and add it to the customer.  Using the below code the customer posts correctly

var Location = Await service.InsertAsync(cf, Customer, credentials, ct);

How do you then create an address and link it to that existing customer?

1 Reply

  • Earl_HD's avatar
    Earl_HD
    MYOB Moderator

    Hi adambilcich,

    Thanks for your post, and welcome to the Community Forum! It looks like you're trying to add a new address to an existing customer's address collection in the .NET framework. I suggest consulting with an IT Specialist for additional support.

    Feel free to post again, we're happy to help!
    Regards,
    Earl