IT Process Automation

 View Only

.ps script with dynamic parameters in run script node

  • 1.  .ps script with dynamic parameters in run script node

    Posted Apr 26, 2019 12:49 PM

    hello,

     

    We have a requirement when we have to decode base64 value to UTF8 so that a pdf file can be generated.

    I was able to do this using ps script if i hardcode the encoded value. But, i am having challenged to pass this dynamically to the script node.

     

    So, I am looking for a way to pass parameters to Run Script node when using .ps Script Extension.

     

    i passed a parameter to the script and in the script before executing the commands for decoding, i have given below statements,

    parameter name: Process.Image

     

    Script:

     

    Param([string]$Image)

    <#
    $Image
    #>

     

    if anyone can share and working samples, that would really help us

     

    Thanks,

    Raj