Add

Overview

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

Syntax

Add(1)

Function Properties

Ordinal Type Description
1 object Required JSON object containing parameters associated with a Portfolio object

Example

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

var newPortfolio = {
    DisplayName : "SSJS Portfolio Object",
    CustomerKey : "myPortfolioCK",
    CategoryID: 12345,
    FileName : "logo.png",
    FileLocation : "http://www.example.com/Portals/0/images/global/logo_main.png"
};

var status = Portfolio.Add(newPortfolio);
Last Updated: Jun 8, 2021