I want to retrieve the Email object associated with the TriggeredSendDefinition in Exact Target. For this, I am trying to find the location of Email (i.e. Folder ID of the associated Email) for the triggeredSend. I tried retrieving the Email object but it said "Error: The Request Property(s) Email do not match with the fields of TriggeredSendDefinition retrieve". I am required to do this using code (API). Please help.
EDIT
I have tried the following String requestID; String status; APIObject[] results; RetrieveRequest rr = new RetrieveRequest{ ObjectType = "TriggeredSendDefinition", Properties = new string[] { "CustomerKey", "Email.Folder", "Email.Name" } }; SimpleFilterPart sfp = new SimpleFilterPart{ Property = "CustomerKey", SimpleOperator = SimpleOperators.equals, Value = "expiry_notice" }; rr.Filter = sfp; soapClient.Retrieve(rr, out requestID, out results); foreach (TriggeredSendDefinition df in results) { Console.WriteLine(df.CustomerKey + " " + df.Email.Name+" " + df.Email.Folder); }
.folder
and .name
and just print out the email object? I don't write in C# typically, so trying to eliminate any obvious issues. I'm thinking tying to call the objects in this way is causing you headaches.