User initiated Extensis Portfolio Server Side Script that outputs a simple configurable "Hello, World!" message to Portfolio's server.log file.
- Via the Portfolio Administration ( :8091 ) Web interface , verify the current version of your Portfolio instance. Although the provided Server Side Script should work on earlier Portfolio versions , Portfolio version 3.6.3 ( or greater ) is recommended.
- Windows Server : Via the Windows File Explorer , navigate to the
C:\Program Files(x86)\Extensis\Portfolio Server\datafolder and create thecustom-scriptssub-folder ( if not already present ).- Verify that the
C:\Program Files(x86)\Extensis\Portfolio Server\data\custom-scriptsfolder is now visible within the Windows File Explorer.
- Verify that the
- Macintosh Server : Via the Macintosh Finder , navigate to the
/Applications/Extensis/Portfolio Server/datafolder and create thecustom-scriptssub-folder ( if not already present ).- Verify that the
/Applications/Extensis/Portfolio Server/data/custom-scriptsfolder is now visible within the Macintosh Finder.
- Verify that the
- Copy the individual script ( .js file extension ) to your Portfolio instance's operating system specific
custom-scriptssub-folder.
- Your Portfolio instance's
server.logwill contain an[extensis.portfolio.server.scripting.ScriptManager] custom script '[script_name].js' was addedentry indicating proper script installation.- Verify that the script entry is now listed as a selection within the Portfolio Web and/or Desktop Client interface's Run Script tool.
- Server Side Scripts should be viewed , edited , and maintained using a standard programmer's text editor :
- Windows ๐ Notepad++ ( https://notepad-plus-plus.org ).
- Macintosh ๐ Atom ( https://atom.io/ ).