# Retrieve an Item from Your Portfolio

Marketing Cloud Engagement has a new model for storing, finding, managing, creating, sharing, and distributing all content-related objects. Access the objects created with the new Content Builder tools using the REST API. Your existing SOAP API integrations only function with the Classic tools.

This page contains information regarding retrieving an object from your account's Portfolio.

## Why Retrieve an Item from Your Portfolio

You can use the Retrieve method to find out more information about and use those items in email sends and other activities.

## How to Retrieve an Item from Your Portfolio

Use the sample code below as a model for your own API call.

### Sample .NET Code

```java

private void RetrievePortfolio()
{
SoapClient framework = new SoapClient();
framework.ClientCredentials.UserName.UserName = "xxx";
framework.ClientCredentials.UserName.Password = "xxx";
String requestID;
String status;
SimpleFilterPart sfp = new SimpleFilterPart();
sfp.Property = "CustomerKey";
sfp.SimpleOperator = SimpleOperators.equals;
sfp.Value = new string[] { "Parka Guy" };
RetrieveRequest rr = new RetrieveRequest();
rr.ObjectType = "Portfolio";
rr.Properties = new string[] { "FileURL", "CustomerKey", "FileName", "IsUploaded" };
rr.Filter = sfp;
APIObject[] results;
status = framework.Retrieve(rr, out requestID, out results);
Console.WriteLine(status);
if (status.ToUpper() == "OK")
{
foreach (Portfolio p in results)
{
Console.WriteLine("FileName: " + p.FileName);
Console.WriteLine("IsUploaded: " + p.IsUploaded);
Console.WriteLine("FileURL: " + p.FileURL);
}
}
}

```

### Sample Java Code (Axis 1.4)

```java
public void testFileDetails() {
    try {
        Soap stub = init();
        RetrieveRequest retrieveRequest = new RetrieveRequest();
        retrieveRequest.setObjectType("Portfolio");
        String[] stringArray = { "FileName", "IsUploaded", "FileURL"};
        retrieveRequest.setProperties(stringArray);
        RetrieveRequestMsg retrieveRequestMsg = new RetrieveRequestMsg();
        retrieveRequestMsg.setRetrieveRequest(retrieveRequest);
        retrieveRequest.setQueryAllAccounts(true);
        SimpleFilterPart filter = new SimpleFilterPart();
        filter.setProperty("FileName");
        filter.setSimpleOperator(SimpleOperators.equals);
        java.util.List filterValues = new ArrayList();
        filterValues.add(new String("Test1.jpg"));
        filter.setValue((String[]) filterValues.toArray(new String[filterValues.size()]));
        retrieveRequest.setFilter(filter);
        RetrieveResponseMsg retrieveResponseMsg = stub.retrieve(retrieveRequestMsg);
        System.out.println("[overall status message] " + retrieveResponseMsg.getOverallStatus());
        APIObject[] apiObjectList = retrieveResponseMsg.getResults();
        List<APIObject> list1 =Arrays.asList(apiObjectList);
        Iterator it = list1.iterator();
        while (it.hasNext()) {
            Portfolio o = (Portfolio) it.next();
            System.out.println("FileLocation ::: " + o.getFileName());
        }
    } catch (RemoteException e) {
        e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
    }


```

### Sample SOAP Envelope

```xml
<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>
    <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
        <wsse:UsernameToken wsu:Id="UsernameToken-24440876" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
        <wsse:Username>XXXXX</wsse:Username>
        <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">XXXXX</wsse:Password>
        </wsse:UsernameToken>
    </wsse:Security>
</soapenv:Header>
<soapenv:Body>
    <RetrieveRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
        <RetrieveRequest>
        <ObjectType>Portfolio</ObjectType>
        <Properties>RowObjectID</Properties>
        <Properties>ObjectID</Properties>
        <Properties>PartnerKey</Properties>
        <Properties>CustomerKey</Properties>
        <Properties>Client.ID</Properties>
        <Properties>CategoryID</Properties>
        <Properties>FileName</Properties>
        <Properties>DisplayName</Properties>
        <Properties>Description</Properties>
        <Properties>TypeDescription</Properties>
        <Properties>IsUploaded</Properties>
        <Properties>IsActive</Properties>
        <Properties>FileSizeKB</Properties>
        <Properties>ThumbSizeKB</Properties>
        <Properties>FileWidthPX</Properties>
        <Properties>FileHeightPX</Properties>
        <Properties>FileURL</Properties>
        <Properties>ThumbURL</Properties>
        <Properties>CacheClearTime</Properties>
        <Properties>CategoryType</Properties>
        <Properties>CreatedDate</Properties>
        <Properties>CreatedBy</Properties>
        <Properties>ModifiedBy</Properties>
        <Properties>ModifiedDate</Properties>
        <Properties>ModifiedByName</Properties>
        <Filter xsi:type="ns1:SimpleFilterPart" xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI">
            <Property>CustomerKey</Property>
            <SimpleOperator>equals</SimpleOperator>
            <Value>header_image_01</Value>
        </Filter>
        </RetrieveRequest>
    </RetrieveRequestMsg>
</soapenv:Body>
</soapenv:Envelope>

```

## Related Items

- [REST API](/docs/marketing/marketing-cloud/guide/content-api.md)
- [Retrieve Method](/docs/marketing/marketing-cloud/guide/retrieve.md)
