Orchestrator 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

publicSRMSiteGetByName(strSRMSiteName:string):SRMSite{

letarrSRMSite:SRMSite[]=this.SRMSitesGet();

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

returnobjSRMSite;
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like