Add

Overview 

Adds a new content area to your account and returns an initialized object

Syntax 

Add(1)

Function Properties 

OrdinalTypeDescription
1objectRequiredJSON object containing parameters associated with a Portfolio object

Example 

This sample code adds a new portfolio object to the Portfolio folder specified by CategoryID.

1var newPortfolio = {
2    DisplayName : "SSJS Portfolio Object",
3    CustomerKey : "myPortfolioCK",
4    CategoryID: 12345,
5    FileName : "logo.png",
6    FileLocation : "http://www.example.com/Portals/0/images/global/logo_main.png"
7};
8
9var status = Portfolio.Add(newPortfolio);