Loading
Passing default value from input as parameter into PW WS returns no value
Hi @ll, I've build a easy PS WS to do some calculations, but I'm unable to pass the default value from "Input 1" into my PS WS as parameter. The WS recognizes the input as empty string. Details below. Input 1, normal text field with default value "1" I hope i interpret "what is the value for this paramater" right Output with PS WS and two input parameters PS WS 1 function Calculate-ServicePrice   {      # Add the input parameters as a comma separated list within the param statement.      param(       $amount,       [Double]$servicePrice       )    $amount   } Returns "No Value" PS WS 2, including ::IsOrWhiteSpace function Calculate-ServicePrice   {      # Add the input parameters as a comma separated list within the param statement.      param(       $amount,       [Double]$servicePrice       )          If([string]::IsOrWhiteSpace($amount))       {          $amount = " VALUE"          $amount       }      Else      {          $amount    }   } Returns " VALUE" Question: Any idea, why I'm not able to pass the default value as parameter into my PS WS. Thanks and Best, Dennis

  • Hello Dennis. I can see no direct problem with the setup.. If you go to checkout page, click f12 to open the developer console.   Select the "network" tab and change the value of the amount parameter.   Assuming everything is ok you should get a invoke call to your powershell webservice.   Could you check if AP passes the value as a parameter to the PSWS corectly?   It should look something like this (examples taken using Firefox in swedish...)   What you can try to change is changing the reference from a Diaplsy Name reference to a Value reference.     In order to make a good reproduction, what version of AP are you using, and what levels are all configs set on?
    Expand Post

Related  Product Forums


                     â†’ Flexera One



                      â†’ Snow Atlas



                      â†’ FlexNet Manager



                      â†’ Snow License Manager



                       â†’ App Broker


       Need help finding an answer?


        Ask a Question →


Loading
Passing default value from input as parameter into PW WS returns no value