View Single Post
Old 16th September 2019, 19:01     #4
MadMax
Stuff
 
I'm ok with the handling of the csv file (i believe), just not the syntax on how to call the invoke-webrequest of the for-each.

for example

Import-Csv -Path 'C:\file.csv' | foreach {
-join ($_.Address3,' ', $_.Suburb,' ',$_.Town,' ',$_.Rural )
}

outputs the query i want and i want to run that against
invoke-webrequest -uri https://www.nzpost.co.nz/tools/addre...inder/address/[number]/[{(join query here)}]

I'm trying to work out that [{( bit
__________________
My degree of sarcasm depends on your degree of stupidity.

Last edited by MadMax : 16th September 2019 at 19:02.
  Reply With Quote