Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2019 01:56 PM
Hi bbf3562,
I did with no success either and your other example seems to work if the array has already been created or established. I think in my case the Array is being built in the while loop.
while (sysCategory.next()) {
var appProperty = {};
var sysProperty = new GlideRecord('sys_properties');
sysProperty.addQuery('sys_id',sysCategory.property);
sysProperty.orderBy('description');
sysProperty.query();
while (sysProperty.next()) {
appProperty.groupName = sysProperty.getDisplayValue('description');
appProperty.propertyValue = sysProperty.getDisplayValue('name');
}
data.appProperties.push(appProperty);
}
-Wesley