IT Process Automation

 View Only
  • 1.  How to pass to dataset arry process variable to powershell run script operator

    Posted Nov 19, 2019 01:44 AM
    Hi,

    I'm looking for ways to pass the dataset variable of type 'array' to the PowerShell run script operator. 

    I have found a similar thread of the same kind. but is there a straight forward way to feed the array type variables to PowerShell script.

    https://community.broadcom.com/communities/community-home/digestviewer/viewthread?MID=800072

    Thanks,
    Venkat


  • 2.  RE: How to pass to dataset arry process variable to powershell run script operator
    Best Answer

    Posted Nov 20, 2019 09:16 AM
    A dataset array will just pass into posh as a comma delimited string.  In posh just split it back on the commas to get it back to an array.  Below is a snippet of how we pass dataset variables to posh.

    '-AppID \'' + Datasets["/Scheduled Jobs/AD GPO Export Dataset"].AppID + '\''


  • 3.  RE: How to pass to dataset arry process variable to powershell run script operator

    Posted Nov 27, 2019 11:59 AM
    Intresting, Will definitely give a try and let you know.