Name

x_snc_codesanity.GetScanSuiteRecord

Description

Returns the one and only scan suite contained in the CodeSanity app.

Script

function GetScanSuiteRecord()
{
  var GetAppRecord = x_snc_devtools.GetAppRecord;
  var IsValidRecord = x_snc_devtools.IsValidRecord;
  var grApp = GetAppRecord('x_snc_codesanity');
  if (IsValidRecord(grApp) == false)
  {
  	return false;
  }
  var grSuite = new GlideRecord('scan_check_suite');
  grSuite.addQuery('sys_scope','=',grApp.sys_id);
  grSuite.addQuery('name','=','CodeSanity');
  grSuite.query();
  if (grSuite.next())
  {
  	return grSuite;
  }
  return false;
}

Sys ID

5ac0a367dba2c110bcced03cd396190d

Offical Documentation

Official Docs: