How to fetch string that is returned from Inject javascript function

I have injected a java script code that returns string value. The variable name in code and “script output” parameter is same but still. output parameter is returning Null.

1 Like

Hey @piyush.2224

Please find following attached sample for your reference and let me know :slight_smile:

js-parameter-pass-and-value-return-sample.zip (2.4 KB)

Regards…!!
Aksh

I did the same but for me its returning error in message box. Something like - Object reference not set to an instance of an object. Have checked the reference and scope also.

1 Like

For me it is working.share your workflow :slight_smile:

Regards…!!

yeah I have tried your work flow. It works . but same thing I have implemented in my project but it throws exception.
I cannot share the work flow coz of security concerns
:frowning:

@piyush.2224

Are you trying to get any variable value which is defined in web application?