PASnapshot - getQuery(String sys_id, Number date)

Get the query used to generate the snapshot for a specified indicator at the specified date.

Table 1. Parameters
Name Type Description
sys_id String The indicator sys_id.
date Number The date when the snapshot was taken, in the format yyyymmdd.
Table 2. Returns
Type Description
String The table, view, and encoded query as a JSON string.
var snapshot3 = PASnapshot.getQuery('fb007202d7130100b96d45a3ce6103b4', 20160530);
gs.info(snapshot3);

Output: *** Script: {"view":"","query":"sys_idINjavascript:new PAUtils().getSnapshotIDs(\"fb007202d7130100b96d45a3ce6103b4\",\"20160530\")","table":"incident"}