Displaying details on FORM using the values from JSON response (obtained from Http Connector)

Now below mentioned error is coming:

Cannot submit task form 71380f23-99ad-11e6-8244-d43d7ec7ada1: Unable to evaluate script: sun.org.mozilla.javascript.internal.EvaluatorException: invalid return (#3) in at line number 3

Remove the return. Sorry for the confusion. was typing on my phone :slight_smile:
Just have

var productid = execution.getVariable("productId");
var url = "http://abc/"+productid+ "?responseFormat=json";
url;

Here is a working sample:

CollectCatalogInfo - v2.bpmn (5.9 KB)

1 Like

Hi Stephen,

Thanx for the solution…Its working…
Although I found an alternative script also…
"http://abc/"+execution.getVariable(“productId”)+"?responseFormat=json"

writing this only in inline script will also suffice :slight_smile:

Thanks,
Tushar

Glad it worked out. :thumbsup: