2

I read metadata from use readMetadata via SOAP API

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Header
        xmlns="http://soap.sforce.com/2006/04/metadata">
        <SessionHeader>
            <sessionId>XYZ</sessionId>
        </SessionHeader>
    </soapenv:Header>
    <soapenv:Body
        xmlns="http://soap.sforce.com/2006/04/metadata">
        <readMetadata>
            <type>Profile</type>
            <fullNames>Admin</fullNames>
        </readMetadata>
    </soapenv:Body>
</soapenv:Envelope>

What I got is a full details of the Profile. Is there any ways if I just want only applicationVisibilities field ?

Thanks

2
  • I'm pretty sure that's only available in the file-based API.
    – sfdcfox
    Commented Dec 17, 2014 at 3:58
  • @sfdcfox, you refer to retrieve ? Thanks
    – liratanak
    Commented Dec 17, 2014 at 6:30

1 Answer 1

1

The readMetadata request is going to return the full profile object, you would need to parse out the applicationVisibilities elements explicitly in whatever code is handling the SOAP response.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .