0

When I use DescribeRequests with Marketing Cloud SOAP API Objects such as AccountUser or Role, I get back a response with properties and information about the properties, including the property and whether isRetrievable is true.

When I try the SOAP request with the Permission object or the PermissionSet object, I don't get the properties and info about them back.

Example Request (with Permission Object):

<?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>
        <a:Action s:mustUnderstand="1">Retrieve</a:Action>
        <a:MessageID>urn:uuid:1e1cca34-64bd-4481-864c-6ea8039d2ea0</a:MessageID>
        <a:ReplyTo>
            <a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address>
        </a:ReplyTo>
        <a:To s:mustUnderstand="1">{{soapEndPoint}}/Service.asmx</a:To>
        <fueloauth xmlns="http://exacttarget.com">{{accessToken}}</fueloauth>
    </s:Header>
    <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
        <DefinitionRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
         <DescribeRequests>
            <ObjectDefinitionRequest>
               <ObjectType>Permission</ObjectType>
            </ObjectDefinitionRequest>
         </DescribeRequests>
      </DefinitionRequestMsg>
    </s:Body>
</s:Envelope>

Example Response (for Permission Object):

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <env:Header xmlns:env="http://www.w3.org/2003/05/soap-envelope">
        <wsa:Action>RetrieveResponse</wsa:Action>
        <wsa:MessageID>urn:uuid:5f4cdd6d-4cb7-407f-84e9-66493b3cdf38</wsa:MessageID>
        <wsa:RelatesTo>urn:uuid:removed</wsa:RelatesTo>
        <wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To>
        <wsse:Security>
            <wsu:Timestamp wsu:Id="Timestamp-06c7cd13-557f-4031-a3ab-5f43f81e9bda">
                <wsu:Created>2020-01-07T20:06:58Z</wsu:Created>
                <wsu:Expires>2020-01-07T20:11:58Z</wsu:Expires>
            </wsu:Timestamp>
        </wsse:Security>
    </env:Header>
    <soap:Body>
        <DefinitionResponseMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
            <RequestID>removed</RequestID>
        </DefinitionResponseMsg>
    </soap:Body>
</soap:Envelope>

Here's a response from a request for the Role object that has the type of data I'm looking for for Permission and PermissionSet:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <env:Header xmlns:env="http://www.w3.org/2003/05/soap-envelope">
        <wsa:Action>RetrieveResponse</wsa:Action>
        <wsa:MessageID>urn:uuid:removed</wsa:MessageID>
        <wsa:RelatesTo>urn:uuid:removed</wsa:RelatesTo>
        <wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To>
        <wsse:Security>
            <wsu:Timestamp wsu:Id="Timestamp-aa1653f0-0a9a-4543-b31c-9612a9472475">
                <wsu:Created>2020-01-07T20:14:53Z</wsu:Created>
                <wsu:Expires>2020-01-07T20:19:53Z</wsu:Expires>
            </wsu:Timestamp>
        </wsse:Security>
    </env:Header>
    <soap:Body>
        <DefinitionResponseMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
            <ObjectDefinition>
                <ObjectType>Role</ObjectType>
                <Properties>
                    <PartnerKey xsi:nil="true" />
                    <ObjectID xsi:nil="true" />
                    <Name>ObjectID</Name>
                    <DataType>String</DataType>
                    <IsUpdatable>true</IsUpdatable>
                    <IsRetrievable>true</IsRetrievable>
                    <IsRequired>false</IsRequired>
                </Properties>
                <Properties>
                    <PartnerKey xsi:nil="true" />
                    <ObjectID xsi:nil="true" />
                    <Name>CustomerKey</Name>
                    <DataType>String</DataType>
                    <IsUpdatable>true</IsUpdatable>
                    <IsRetrievable>true</IsRetrievable>
                    <IsRequired>false</IsRequired>
                </Properties>
                <Properties>
                    <PartnerKey xsi:nil="true" />
                    <ObjectID xsi:nil="true" />
                    <Name>Name</Name>
                    <DataType>String</DataType>
                    <IsUpdatable>true</IsUpdatable>
                    <IsRetrievable>true</IsRetrievable>
                    <IsRequired>false</IsRequired>
                </Properties>
                <Properties>
                    <PartnerKey xsi:nil="true" />
                    <ObjectID xsi:nil="true" />
                    <Name>Description</Name>
                    <DataType>String</DataType>
                    <IsUpdatable>true</IsUpdatable>
                    <IsRetrievable>true</IsRetrievable>
                    <IsRequired>false</IsRequired>
                </Properties>
                 <Properties>
                    <PartnerKey xsi:nil="true" />
                    <ObjectID xsi:nil="true" />
                    <Name>CreatedDate</Name>
                    <DataType>DateTime</DataType>
                    <IsUpdatable>true</IsUpdatable>
                    <IsRetrievable>true</IsRetrievable>
                    <IsRequired>false</IsRequired>
                </Properties>
               (There are more properties, which I removed.)
              </ObjectDefinition>
            <RequestID>removed</RequestID>
        </DefinitionResponseMsg>
    </soap:Body>
</soap:Envelope>

I run the SOAP API requests in Postman.

Relates to: Marketing Cloud SOAP API documentation for the Permission object

Your Answer

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

Browse other questions tagged or ask your own question.