Can't get data from cmdb_ci_netgear in Action Workflow Studio
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2025 07:33 AM
Hey, im trying to get Meraki-networkIds from cmdb_ci_netgear from an Action in Workflow Studio, this is the code:
(function execute(inputs, outputs) {
var networkIds = [];
var netgearGR = new GlideRecord('cmdb_ci_netgear');
netgearGR.addEncodedQuery('u_meraki_network_device_idSTARTSWITHL_7825004352556291')
netgearGR.query();
while (netgearGR.next()) {
networkIds.push(netgearGR.u_meraki_network_device_id.toString());
}
var uniqueArray = new ArrayUtil().unique(networkIds)
outputs.uniqueArray = uniqueArray;
})(inputs, outputs);
And this is my output variable:
and here is my Action output:
The code works in Background Scripts and looks like this:
Does anyone know why i cant get results when i test it? It just returns totally empty.
0 REPLIES 0