Validating a Salesforce Id

There are two levels of validating salesforce id: check format using regular expression [a-zA-Z0-9]{15}|[a-zA-Z0-9]{18} for 18-characted ids you can check the the 3-character checksum: Code examples provided in comments: C# Go Javascript Ruby

Deserializing JToken content to an Object

You can use JToken.ToObject generic method. http://www.nudoq.org/#!/Packages/Newtonsoft.Json/Newtonsoft.Json/JToken/M/ToObject(T) Server API Code: public void Test(JToken users) { var usersArray = users.ToObject<User[]>(); } Here is the client code I use. string json = “[{\”UserId\”:0,\”Username\”:\”jj.stranger\”,\”FirstName\”:\”JJ\”,\”LastName\”:\”stranger\”}]”; HttpClient client = new HttpClient(); var result = client.PostAsync(@”http://localhost:50577/api/values/test”, new StringContent(json, Encoding.UTF8, “application/json”)).Result; The object gets converted to Users array without any issues.

Salesforce Authentication Failing

For anyone who is as stuck and frustrated as I was, I’ve left a detailed blog post on the entire process (with pictures and ranty commentary!). Click the link if you want that: http://www.calvinfroedge.com/salesforce-how-to-generate-api-credentials/ Here is a text only answer: Step 1: Create an account. You can create a (free) developer account at developer.salesforce.com Step … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)