Orchestrator Action

by Simon Sparks · January 5, 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";

(function (strTenantID: string): Properties[] {
  let arrProperties: Properties[] = [];

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

    let objConfigElementAccessorGeneral: ConfigElementAccessor = new ConfigElementAccessor("CompanyName/General");

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

    let objConfigElementAccessorEnvironment: ConfigElementAccessor = new ConfigElementAccessor(`General/t${strEnvironment}`);

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

    let arrKey: string[] = objProperties.keys;

    arrKey.forEach((strKey: string): void => {

      let strValue: string = objProperties.get(strKey);

      arrProperties.push(new Properties({ value: strValue, label: strKey }));

    });

  }

  return arrProperties;
});

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like