I'm using the SalesForce Marketing Cloud (Exact Target).
I have a folder ID (category ID) and I want to get all the send definitions (user-initiated sends) in that folder via the SOAP API in C#. I know when retrieving lists, I can create a filter that matches on Category (folder ID).
When I attempt to do the same for email send definitions, I receive the status :
Error: The Filter Property 'CategoryID' is not a retrievable property.
I tried both Category and CategoryID, and no luck. Anyone have success trying to do this?
Here is my code to set up the filter:
RetrieveRequest rr = new RetrieveRequest();
rr.ObjectType = "EmailSendDefinition";
rr.Properties = new string[] { "ObjectID", "Name", "CategoryID", "SenderProfile.FromName", "SenderProfile.CustomerKey" };
SimpleFilterPart sfp = new SimpleFilterPart();
sfp.Property = "CategoryID";
sfp.SimpleOperator = SimpleOperators.equals;
sfp.Value = new string[] { categoryId };
rr.Filter = sfp;