GetPortfolioItem
This function returns Portfolio item content for the specified Customer/External Key.
Argument
GetPortfolioItem(1)
Ordinal | Type | Required | Description |
---|---|---|---|
1 | String | True | Customer/External Key of the Portfolio item to return |
NOTE: Keys for the Portfolio item can be found by selecting the item on the listing page and clicking the Properties option in the toolbar.
NOTE: This function is best suited for returning non-binary content from the Portfolio, like the Document and Code types.
Example
A LoyaltyRegions.txt
file is uploaded to the Portfolio that contains the following content:
North
South
East
West
The content can be retrieved with this function:
%%[
var @portfolioItemKey
set @portfolioItemKey = "LoyaltyRegions"
]%%
Loyalty Regions: %%=GetPortfolioItem(@portfolioItemKey)=%%
Output
Loyalty Regions: North South East West