Does anyone know how to define the location for the data extension when using SOAP api to create a data extension?

2 Answers 2


You can use it by <CategoryID> tag in SOAP to add it in folder. If you use Inspect (Open in Chrome > Right click > Inspect > click on the data extension folder) on the category Id will be the parent folder ID.

enter image description here

Below can be same example for SOAP UI to create a data extension in a folder:

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:par="http://exacttarget.com/wsdl/partnerAPI">
                <par:CategoryID>Folder ID</par:CategoryID>
                <par:ModifiedDate xsi:nil="true"/>
                <par:ObjectID xsi:nil="true"/>
                <par:Name>Data Extension Name</par:Name>
                <par:Description>Data Extension Description</par:Description>

Let me know if this helps.

  • 1
    This is about creating a data extension folder, but the OP is asking about adding a Data Extension into a specific folder. Great info, but it is not what the question is about. Please adjust it to reflect what is being asked. May 14, 2020 at 12:45
  • 1
    Thanks @Gortonington for rightly pointing out. Am sorry, I overlooked the question. I have updated my answer now.
    – Naveen VM
    May 14, 2020 at 14:31
  • Thanks @NaveenVM, this worked. May 19, 2020 at 8:54
  • You are welcme @WillemRuys.! Am glad that it worked for you.
    – Naveen VM
    May 19, 2020 at 10:25

We use ssjs to create Data Extension and we use the property CategoryID on the data extension object. We set the value to a static value of the folder in which we wish to create the data extension. When you hover over your folder, you will see the id at the bottom. See below. I have not worked with SOAP API, but I believe the underlying object and property remains the same. Hope this helps :)

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.