appending a array as HTML table in Powershell RRS feed

  • Question

  • I have following powershell code snippet: 


     ..foreach($artifactsde in $artifactalias){
        $global:ss +='<tr><td>{0}</td><td>{1}</td><td>{2}</td></tr>' -f $artifactsde.AID,$artifactsde.Atype,$artifactsde.versaid


    where my artifactalias in debugger mode is something as shown in below diagram and my $ss is something as shown in another screen shot.
    I am trying to form a table with all my contents in artifactalias and bind it with html tag. if i bind the $ss with my html tag I get System.Object[] as the output on my html content. what wrong am i doing??artifactalias



    Wednesday, September 23, 2020 11:48 AM