Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

Parsing output from Remedy Plugin Response

$
0
0

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.

 

  1. Input: actionResult   --> Type : Array/ Remedy:ITSMRecord
  2. 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


Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>