Orchestrator Function: ResourceElement Get Content

by Simon Sparks · 20 January 2026

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

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

Filename: Utilities.ts

Function: GetResourceElementContent

Description: This function gets the string text content of a ResourceElement from Orchestrator.

publicstaticGetResourceElementContent(strResourceElementCategoryName:string,strResourceElementName:string):string{

letobjResourceElement:ResourceElement=this.ResourceElementGet(strResourceElementCategoryName,strResourceElementName);

letobjMimeAttachment:MimeAttachment=objResourceElement.getContentAsMimeAttachment();

letstrMimeAttachmentContent:string=objMimeAttachment.content;

returnstrMimeAttachmentContent;
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like