--- title: "TrackScript" slug: "trackscript" updated: 2023-06-14T13:19:46Z published: 2023-06-14T13:19:47Z canonical: "docs.datajet.app/trackscript" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.datajet.app/llms.txt > Use this file to discover all available pages before exploring further. # TrackScript Used to track status of an executing script | Key | Value(s) | Description | | --- | --- | --- | | method | "TrackScript" | Tracks status of an executing script | | scriptId | "madeupscriptID" | scriptID - this is manually set when calling ExecuteStoredScript | | statusOnly | true/false | | Use TrackScript in conjunction with [ExecuteStoredScript](/v1/docs/executestoredscript): ```json { "method": "ExecuteStoredScript", "scriptId": "madeupscriptid0001", "name": "Regression Reports", "targetProject": "RegressionDB" "projectName":"RegressionDB" } { "method": "TrackScript", "scriptId": "madeupscriptid0001", "statusOnly":true, } ``` The following is an example of a TrackScript response with statusOnly = true: ```json { "result": {}, "currentPos": 4, "callingProject": "BikeData2", "targetProject": "BikeData2", "cancelled": false, "failed": false, "runOK": true, "hasError": false, "complete": true, "lifeTime": 0, "runTime": 0, "executed": true, "errors": [], "millis": 1, "projectEpoch": 638223390449064890, "method": "TrackScript" } ``` The following is an example of a TrackScript response with statusOnly = false: ```json { "result": { "script": [ { "method": "Defines", "detail": "", "state": "Not Started", "time": "", "errors": [] }, { "method": "Backup", "detail": "", "state": "Complete", "time": "0.04", "errors": [] }, { "method": "IF", "detail": "", "state": "Not Started", "time": "", "errors": [] }, { "method": "Audit", "detail": "%BackupPathAndFile_Audit%", "state": "Complete", "time": "0.33", "errors": [] }, { "method": "ENDIF", "detail": "", "state": "Not Started", "time": "", "errors": [] } ] }, "currentPos": 4, "callingProject": "BikeData2", "targetProject": "BikeData2", "cancelled": false, "failed": false, "runOK": true, "hasError": false, "complete": true, "lifeTime": 0, "runTime": 0, "executed": true, "errors": [], "millis": 0, "projectEpoch": 638223390449064890, "method": "TrackScript" } ```