Skip to main content
deleted 105 characters in body
Source Link

I am trying to retrieve Settings Metadata using Metadata API. The request body is as follows:-

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"xmlns:tns="http://soap.sforce.com/2006/04/metadata">
<soapenv:Header>
    <tns:SessionHeader>
        <tns:sessionId>00D5f000003wYMD!ARIAQEdF1NqGzjQyv_bsbP8eIxrxuX5WCatIe7NSA5yMJkSyvSBWK1GjtEQ8c2rZVgo9eACiHGZtD_TVJEQyLTgnwWv8uZ2e<sessionId>{token}</tns:sessionId>
    </tns:SessionHeader>
</soapenv:Header>
<soapenv:Body>
    <tns:retrieve>
        <retrieveRequest>
            <unpackaged>
                <types>
                    <members>TrialOrg</members>
                    <name>Settings</name>
                </types>
                <types>
                    <members>RecordPage</members>
                    <name>Settings</name>
                </types>
                <version>54.0</version>
            </unpackaged>
        </retrieveRequest>
    </tns:retrieve>
</soapenv:Body>
</soapenv:Envelope>

The output is showing me error enter image description here

But when I am trying to retrieve these same settings through workbench, I am able to successfully do it. Here is my package.xml

Package.xml

Here is output from the workbench

enter image description here

Any lead, what I am doing wrong in the SOAP call. anything would be highly appreciable

I am trying to retrieve Settings Metadata using Metadata API. The request body is as follows:-

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"xmlns:tns="http://soap.sforce.com/2006/04/metadata">
<soapenv:Header>
    <tns:SessionHeader>
        <tns:sessionId>00D5f000003wYMD!ARIAQEdF1NqGzjQyv_bsbP8eIxrxuX5WCatIe7NSA5yMJkSyvSBWK1GjtEQ8c2rZVgo9eACiHGZtD_TVJEQyLTgnwWv8uZ2e</tns:sessionId>
    </tns:SessionHeader>
</soapenv:Header>
<soapenv:Body>
    <tns:retrieve>
        <retrieveRequest>
            <unpackaged>
                <types>
                    <members>TrialOrg</members>
                    <name>Settings</name>
                </types>
                <types>
                    <members>RecordPage</members>
                    <name>Settings</name>
                </types>
                <version>54.0</version>
            </unpackaged>
        </retrieveRequest>
    </tns:retrieve>
</soapenv:Body>
</soapenv:Envelope>

The output is showing me error enter image description here

But when I am trying to retrieve these same settings through workbench, I am able to successfully do it. Here is my package.xml

Package.xml

Here is output from the workbench

enter image description here

Any lead, what I am doing wrong in the SOAP call. anything would be highly appreciable

I am trying to retrieve Settings Metadata using Metadata API. The request body is as follows:-

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"xmlns:tns="http://soap.sforce.com/2006/04/metadata">
<soapenv:Header>
    <tns:SessionHeader>
        <tns:sessionId>{token}</tns:sessionId>
    </tns:SessionHeader>
</soapenv:Header>
<soapenv:Body>
    <tns:retrieve>
        <retrieveRequest>
            <unpackaged>
                <types>
                    <members>TrialOrg</members>
                    <name>Settings</name>
                </types>
                <types>
                    <members>RecordPage</members>
                    <name>Settings</name>
                </types>
                <version>54.0</version>
            </unpackaged>
        </retrieveRequest>
    </tns:retrieve>
</soapenv:Body>
</soapenv:Envelope>

The output is showing me error enter image description here

But when I am trying to retrieve these same settings through workbench, I am able to successfully do it. Here is my package.xml

Package.xml

Here is output from the workbench

enter image description here

Any lead, what I am doing wrong in the SOAP call. anything would be highly appreciable

Source Link

Not able to retrieve Settings through Metadata API

I am trying to retrieve Settings Metadata using Metadata API. The request body is as follows:-

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"xmlns:tns="http://soap.sforce.com/2006/04/metadata">
<soapenv:Header>
    <tns:SessionHeader>
        <tns:sessionId>00D5f000003wYMD!ARIAQEdF1NqGzjQyv_bsbP8eIxrxuX5WCatIe7NSA5yMJkSyvSBWK1GjtEQ8c2rZVgo9eACiHGZtD_TVJEQyLTgnwWv8uZ2e</tns:sessionId>
    </tns:SessionHeader>
</soapenv:Header>
<soapenv:Body>
    <tns:retrieve>
        <retrieveRequest>
            <unpackaged>
                <types>
                    <members>TrialOrg</members>
                    <name>Settings</name>
                </types>
                <types>
                    <members>RecordPage</members>
                    <name>Settings</name>
                </types>
                <version>54.0</version>
            </unpackaged>
        </retrieveRequest>
    </tns:retrieve>
</soapenv:Body>
</soapenv:Envelope>

The output is showing me error enter image description here

But when I am trying to retrieve these same settings through workbench, I am able to successfully do it. Here is my package.xml

Package.xml

Here is output from the workbench

enter image description here

Any lead, what I am doing wrong in the SOAP call. anything would be highly appreciable