Skip to content

Instantly share code, notes, and snippets.

@trondhindenes
Created November 13, 2014 17:11
Show Gist options
  • Save trondhindenes/ee0ffc2ebc713f76fa39 to your computer and use it in GitHub Desktop.
Save trondhindenes/ee0ffc2ebc713f76fa39 to your computer and use it in GitHub Desktop.
workflow testwf
{
$out = inlinescript {
$result = Invoke-restmethod -Uri "http://opendatasalutedata.cloudapp.net/v1/datacatalog/"
$out = $result.service.workspace.collection
$out
}
$out
}
function testfunc
{
$result = Invoke-restmethod -Uri "http://opendatasalutedata.cloudapp.net/v1/datacatalog/"
$out = $result.service.workspace.collection
$out
}
$out1 = testwf
$out2 = testfunc
#Get the type of the workflow's output (generic object)
Write-Output "Workflow output:"
$out1[0].GetType()
#Get the type of the function's output (xml)
Write-Output "Function output:"
$out2[0].GetType()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment