Murray Brown
asked on
Xero Name is not a member of Contact
Hi. In the following VB.net code use with the Xero API I get the error "Name is not a member of Contact"
Why would this be
Why would this be
Sub oCreateContact()
Dim api = New Xero.Api.Example.Applications.[Private].Core(False)
Dim newContact As Contact = New Contact()
newContact.Name = "Metal Fencing"
newContact.FirstName = "John"
newContact.LastName = "Smith"
newContact.EmailAddress = "john@metalfencing.com"
api.Contacts.Create(newContact)
End Sub
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
many thanks
Dim newContact AS api.Contact = New api.Contact
Again, I don't know if that is even valid syntax. Do you have a .NET reference for the API? Are you using a 3rd party library for this?