Function: SRM Site Get by Name

by Simon Sparks · 4 February 2026

To use this function add it to the class library file named OrchestratorPluginSRMService.ts

GitHub Repository: https://github.com/SimonSparksUK/Orchestrator

Filename: OrchestratorPluginSRMService.ts

Public Function: SRMSiteGetByName

public SRMSiteGetByName(strSRMSiteName: string): SRMSite {

  let arrSRMSite: SRMSite[] = this.SRMSitesGet();

  let objSRMSite: SRMSite = arrSRMSite.find((objSRMSite: SRMSite): boolean => {
    return objSRMSite.name === strSRMSiteName;
  });

  return objSRMSite;
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like