Author API Methods
getItemReference()
Gets the current reference of the Item being edited.
You would want to use this method so that you can retrieve and store the Item reference in your own database, for example.
Examples
var itemReference = authorApp.getItemReference();
console.log(itemReference);
Arguments
None.
Return value
Type string
The Item reference used to identify the Item.
Type boolean
Returns false
if not in the Item editor view.
Related articles
- The
setItemReference()
method, which allows you to set the Item reference.