Check whether new contact already exists in Xero

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


Check whether new contact already exists in Xero



I am using Visual Studio C# winforms and have installed the Nuget wrapper. I am trying to check whether a contact record already exists in the Xero database.


string expected = "Test";
var name=api.Contacts
.Where(string.Format("Name == "{0}"", expected))
.Find()
.Select(p => p.Name);
bool exists = (name.All(p => p == expected)



This code is returning True even when the record does not exist. Assistance would be appreciated.









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Arduino Mega cannot recieve any sketches, stk500_recv() programmer is not responding

Visual Studio Code: How to configure includePath for better IntelliSense results

Future solutions