I wrote this so new users will not have to build query strings. I am a new user myself, but I think this could be added to the Sample-Code. *** //This Builds Query Strings public string BuildQueryXML(string entity, string field, string searchText) { //Set our return variable as a String called query String query = ""; //Build our string in queryxml StringBuilder strResource = new StringBuilder(); strResource.Append("<queryxml version=\"1.0\">"); strResource.Append($"<entity>{entity}</entity>"); strResource.Append("<query>"); strResource.Append($"<field>{field}<expression op=\"equals\">"); strResource.Append(searchText); strResource.Append("</expression></field>"); strResource.Append("</query></queryxml>"); //Return our query as a string return query; }
Activity
Manaf-Ibrahim commentedon Jun 26, 2019
Thanks for this! I am new to C# so this helped with building requests - I would suggest submitting this for a PR maybe?