Hi,
. I’m reading a workorder from remedy using remedy plugin in vRO, which is successful and output is returned in var actionResult(Array/ Remedy:ITSMRecord) having key and values. Now I need key values matching the key 1000*****.in a o/p variable to pass it in workflow.
- Input: actionResult --> Type : Array/ Remedy:ITSMRecord
- Expected Output: WorkOrderNumber --> Tried using Array/Remedy:ITSMRecord, Array/string, Array/Remedy:ITSMField, string, ITSMRecord, ITSMField
But throws error as not an array or invalid conversion
---------------------------------------------------------------------------------------------------------------------------------
System.log("Records Returned [" + actionResult.length + "]");
for(var i=0;i<actionResult.length;i++){
var f = actionResult[i].getFields();
System.log("Record contains [" + f.length + "] fields");
for(var t=0;t<f.length;t++){
System.log("\tKey [" + f[t].getKey() + "] :: Value [" + f[t].getValue() + "]");
if(f[t].getKey()=="1000*****"){
WorkOrderNumber = f[t].getValue()
}
}
}
--------------------------------------------------------------------------------------------------------
Kindly help me out fixing this
Thanks,
Manu