Good evening all,
I have run into a slight issue with an array created within an endpoint.
$Cache:ArrayName = @()
$details = [PSCustomObject] #object has multiple items within it#
$Cache:ArrayName += $details
I then attempt to display the data within the custom object on a New-UDCard.
New-UDCard -Title "Example Title" -Endpoint {
foreach ($item in $Cache:ArrayName){
New-UDParagraph -Text "Here is the attempt to loop through the array"
}
Am I approaching this topic correctly or have I missed this by a mile?