The Salesforce Developers website will undergo maintenance on May 29, 2024 from 3:00 a.m. UTC to 10:00 a.m. UTC. The maintenance process may affect the availability of our documentation. Please plan accordingly.

Portfolio Functions

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:

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:

Once you initialize the portfolio object, you can use the applicable functions.