-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
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;
}
Metadata
Metadata
Assignees
Labels
No labels