Orchestrator Action

by Simon Sparks · 5 January 2026

This is a sample of how to create an orchestrator action using the Build Tools.

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

Filename: Samples / Action.ts

import{ConfigElementAccessor}from"com.vmware.pscoe.library.ts.util/ConfigElementAccessor";

/**
 *@param{string}strTenantID
 *@returns{Array/Properties}
 *@function
 *@method
 *@authorSimon Sparks<simonsparks@cloudbuildtools.com>
 *@since 1.0.0
 *@version1.0.0
 *@description Action
 *@summary Action
 *@functionactionSample();
 *@throws{Error}
 */
(function(strTenantID:string):Properties[]{
letarrProperties:Properties[]= [];

if (strTenantID===null||strTenantID===""){
// Do Nothing
}
else{

letobjConfigElementAccessorGeneral:ConfigElementAccessor=newConfigElementAccessor("CompanyName/General");

letstrEnvironment:string=objConfigElementAccessorGeneral.get<string>("Environment_Road_Sign",false);

letobjConfigElementAccessorEnvironment:ConfigElementAccessor=newConfigElementAccessor(`General/t${strEnvironment}`);

letobjProperties:Properties=objConfigElementAccessorEnvironment.get<Properties>("VariableName");

letarrProperties:Properties[]=Utilities.ConvertPropertiesToArrayOfProperties(objProperties);
}

returnarrProperties;
});

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.