Welcome to Catalog Tips

Search more than 200 articles to learn more about creating and automating your product catalogs

Tip: Start typing in the input box for immediate search results.

< All Topics
Print

CALLSCRIPT – Call and retrieve a script

Overview

This Custom Field calls an ExtendScript in the ‘Scripts’ data source folder and retrieves a result. The script can refer to record data as myRecord[“fieldname”].

Syntax

CALLSCRIPT(FormatPrice.jsx)

Element Description
FileName The script to call

Example

CALLSCRIPT(‘myscript.jsx’)

The script itself will be passed the contents of the other fields for this record in an array called ‘myRecord’. An example script to concatenate the contents of “field b” to “field a” would be:

myRecord[“field a”] + myRecord[“field b”];

See also

GROUPSCRIPT

Table of Contents