---
schema_version: "1"
id: 5fc896e1a75cd0e1b7a14a5ac4df415490953f3fe19ce238d1f261b730eb849b
title: Portfolio Functions
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_portfolioFunctions.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_portfolioFunctions.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 54b176fff02b295addd0dd1a40dcd7f5a69e6a4f398176623d639b10bb280961
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# Portfolio Functions

Portfolio functions allow access via server-side JavaScript to Portfolio content.

## Load

Use the Portfolio Server-Side JavaScript Functions In your server-side JavaScript code, first load the core library using this syntax:

```
Platform.Load("core","1");
```

## Initialization

To interact with a portfolio object via server-side JavaScript, you must first initialize the object. The code below initializes an email with the external key of myPortfolioCK:

```
var portObj = Portfolio.Init('myPortfolioCK');
```

Once you initialize the portfolio object, you can use the applicable functions.
