Hi,
I am trying out Rest API call using automation anywhere. I get a response in the json format. Lets say I get something like this => {"error":false,"message":"68fd08f0-d5f4-11e8-b01b-db6ba7af2de6"}
Now i am trying to get the value of message from it. Since there is no default JSON...
Greetings,
I want to pass a json value from a variable to javascript, but the problem is that it is not passing it the right way.
Suppose {"name":"JANE","id":"20789","company":"HTC"} is my json data i store in a variable and try to pass it to script, it is passing the value without quotes...
here is an example. From the text below i need to fetch the invoice number using regular expression. the text is as follows :
Minerva Enterprises Unit No.3
Manufacturing of Sand Cores
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Mob No.: 9970112996,8484888308,8308211787, Mail ID: minervxxx3@gmail.com...
this is my script :
var val1=WScript.Arguments.item(0);
var val2=Wscript.Arguments.item(1);
String.prototype.isMatch =function(s){
return this.match(s)!==null
}
var mybool=val1.isMatch(val2);
WScript.StdOut.WriteLine(mybool);
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.