I'm passing the following RetrieveRequest
to retrieve data from a DataExtension
.
var retrieveRequest = new RetrieveRequest
{
ObjectType = "DataExtensionObject[DataExtensionName]",
Properties = new string[]
{
"SubscriberKey",
"FirstName",
"LastName"
},
Filter = new SimpleFilterPart
{
Property = SubscriberKey,
SimpleOperator = SimpleOperators.equals,
Value = new string[] { EmailAddress }
},
};
This worked correctly for a number of months before lying dormat. It has since been reactivated however it is now returning Data extension does not exist
error message.
I believe its because a new Business Unit has been added to the instance and using the incorrect one. I tried to tell it which Business Unit to use by using (what I think is) the Business Unit in the following way
retrieveRequest.Options = new RetrieveOptions()
{
Client = new ClientID() { ID = 7296948, IDSpecified = true }
}
However still no luck. Am I on the right path?
Only other thing I could think of is that the folder structure of the Data Extensions have changed so the Data Extension is now nested under a number of folders but that shouldn't affect it surely?