Hi
I am trying to connecting to postgre database and pull the data by querying a database and send an email based on the values returned from the query.
I was able to connect to the database and run the query from power shell and taking the output into $result. I see the the length of the $result array is 1350.
$result = Get-TableauExtract -connectionString $connectionString -query $query
I am good till now .
I am facing problem from next step. How do I access the column names stored in the $result array and have a forloop run on the array. Please let me know how to access the column names and values .
Thanks
Vishwa