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\data
folder and create thecustom-scripts
sub-folder ( if not already present ).- Verify that the
C:\Program Files(x86)\Extensis\Portfolio Server\data\custom-scripts
folder is now visible within the Windows File Explorer.
- Verify that the
- Macintosh Server : Via the Macintosh Finder , navigate to the
/Applications/Extensis/Portfolio Server/data
folder and create thecustom-scripts
sub-folder ( if not already present ).- Verify that the
/Applications/Extensis/Portfolio Server/data/custom-scripts
folder 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-scripts
sub-folder.
- Your Portfolio instance's
server.log
will contain an[extensis.portfolio.server.scripting.ScriptManager] custom script '[script_name].js' was added
entry 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/ ).