AMPscript
Add
Remove
Retrieve
Update
Validate Your Server-Side JavaScript using WSProxy
Portfolio functions allow access via server-side JavaScript to Portfolio content.
Use the Portfolio Server-Side JavaScript Functions In your server-side JavaScript code, first load the core library using this syntax:
1Platform.Load("core","1");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:
1var portObj = Portfolio.Init('myPortfolioCK');Once you initialize the portfolio object, you can use the applicable functions.