Created
November 13, 2014 17:11
-
-
Save trondhindenes/ee0ffc2ebc713f76fa39 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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