Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
CRM 2015 Filtering Sample
public class JsonFilterItemCollection : FilterItemCollection
{
...
protected override void OnInitialising(string filename)
{
using (var reader = File.OpenText(filename))
{
var settings = new JsonSerializerSettings();
settings.ContractResolver = new CamelCasePropertyNamesContractResolver();
this.Filter = JsonConvert.DeserializeObject<Filter>(reader.ReadToEnd(), settings);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.