Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2012 06:35 AM
Yes, I have tried returning an array of Strings also, this does not work either.
function getMyDivision(){
var DivisionArray = new Array();
var uID = gs.getUserID();
var user = new GlideRecord('sys_user');
user.addQuery('user', uID);
user.query();
while(user.next()){ DivisionArray.push(user.u_division.toString()); }
return DivisionArray;
}
I have also tried returning a "cmn_deparment" variable instead of a String, since that is the reference field's table. This did also not work