I am using Salesforce metadata api to create a contacts list view with one filter. The filter should contain First Name.
metadata = [{
fullName: 'Contact.listViewName1',
label: listViewName1,
filterScope: 'Everything',
filters: [{
filter: "First_Name",
operation: "contains",
value: 'AUTO_'
}]
}];
I tried using 'filter' instead of 'field' and I get the following:
element {http://soap.sforce.com/2006/04/metadata}filter invalid at this location in type ListViewFilter