AMPscript
Add
Remove
Retrieve
Update
Validate Your Server-Side JavaScript using WSProxy
Adds a new content area to your account and returns an initialized object
Add(1)
| Ordinal | Type | Description | |
|---|---|---|---|
| 1 | object | Required | JSON object containing parameters associated with a Portfolio object |
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);