Unable to Create Automation Studio Folders via SOAP API using DataFolder object
Trailblazer Community

Unable to Create Automation Studio Folders via SOAP API using DataFolder object

Marketing Cloud Automations

Last updated 2020-04-16 ·Reference W-5514840 ·Reported By 9 users

In Review

Summary
When a SOAP API request is made to create Automation folders with the DataFolder object, the request fails with the following error: "automations" is not a valid Folder ContentType.

Repro
Make a Create Request using DataFolder object using the Automations entity. When doing this use the ID of your root automations folder:

Example Request:

<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing"" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">;
<s:Header>
<fueloauth>OAUTHToken</fueloauth>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd="http://www.w3.org/2001/XMLSchema">;
<CreateRequest xmlns="http://exacttarget.com/wsdl/partnerAPI">;
<Objects xsi:type="DataFolder">
<CustomerKey>SOAPTest</CustomerKey>
<ParentFolder>
<ID>12345678</ID>
</ParentFolder>
<Name>SOAPTest</Name>
<Description>SOAP Test</Description>
<ContentType>automations</ContentType>
<IsActive>true</IsActive>
<IsEditable>true</IsEditable>
<AllowChildren>true</AllowChildren>
</Objects>
</CreateRequest>
</s:Body>
</s:Envelope>

Example Response:


<CreateResponse xmlns="http://exacttarget.com/wsdl/partnerAPI">;
<Results>
<StatusCode>Error</StatusCode>
<StatusMessage>"automations" is not a valid Folder ContentType.</StatusMessage>
<OrdinalID>0</OrdinalID>
<ErrorCode>396005</ErrorCode>
<NewID>0</NewID>
</Results>
<RequestID>d99e9135-f4dd-4b6e-a36f-93aafea75315</RequestID>
<OverallStatus>Error</OverallStatus>
</CreateResponse>

Workaround
Create a folder in the UI.

Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.