I'm scheduling created email send definition from user-initiated folder with the node js Fuel-SOAP API library, this gone to My Tracking directory Is it possible to assign the tracking destination custom folder through the API? Thanks in advance!
1 Answer
If you mouse over your custom folder you should see a numeric folder id in the link. In your soap request, use that ID in EmailSendDefinition.CategoryID property
Updated with example
var folderID = 12345;
var sendESD = new ET_EmailSendDefinition
{
AuthStub = myclient,
CustomerKey = newSendDefinitionName,
CategoryID = folderID
};
var sendESDResponse = sendESD.Send();
Console.WriteLine("Send Status: " + sendESDResponse.Status.ToString());
Console.WriteLine("Message: " + sendESDResponse.Message);
Console.WriteLine("Code: " + sendESDResponse.Code.ToString());
Console.WriteLine("Results Length: " + sendESDResponse.Results.Length);
-
I have tried your way but i have no luck. Can you please explain it with brief, or suggest me another solution, because I am stuck on this. Commented Dec 4, 2017 at 7:45
-
@KrishanKantSharma see updated example. you need to get the folderID from SFMC UI– Bo HuCommented Dec 5, 2017 at 1:33
-
No luck . I should have made my request more clear. If you are in the Marketing Cloud UI, I'm looking for how to assign the folder under Tracking -> Sends. Same thread is here : link Commented Dec 5, 2017 at 8:17