I'm trying to fetch the list of Protocol Schema's from the content manager, but no luck. I've tried both the GetSystemWideListXml method as the GetListXml, but I'm not sure which type of filter to use.
This will get me no schema's at all:
RepositoryItemsFilterData filter = new RepositoryItemsFilterData();
filter.ItemTypes = new ItemType[] { ItemType.Schema };
filter.SchemaPurposes = new SchemaPurpose[] { SchemaPurpose.Protocol };
XElement schemas = this.CoreService.GetListXml(this.txtPublication.Text, filter);
I was kinda expecting something like a 'ProtocolSchemasFilterData' to use together with GetSystemWideListXml, but I can't find anything like this.
How can this be achieved?