GetPortfolioItem()

Returns the content of a file in your Portfolio.

The GetPortfolioItem(itemExternalKey) function has one parameter:

  • itemExternalKey (string): Required. The external key of an item in your Portfolio.

To use this function, pass it the external key of an item in your Portfolio. This function is helpful for storing text in an external file, and bringing that text into your content.

This example refers to a text file called hello.txt with an external key of "HelloWorld". The file contains this text.

Call the function by passing it the external key of the text file.

The function returns Hello, world! This is a second line of text. This is the last line of text.