Hi Manish,The SQL Queries in the Workflow can be directly used in the JavaScript Activity.The Syntax to do so is given below :1. var sqlQuery=("Select iworkflowid, ifailed from xtkworkflow where sinternalname='abc'''); var wfState=sqlSelect("publicUrl,@getWfID:int,@getWfFailedStatus:int",sqlQuery...