Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I am running this script to change the owner of the workspace to the CSR.
var username = item.CSR;
var nameArray = username.split(",");
var lName = nameArray[0];
var fName = nameArray[1];
var userINFO = Security.searchUsers({lastName:lName, firstName:fName});
item.master.owner = Security.loadUser(userINFO[0].id);
I am getting an error saying "cannot get "id" from undefined".
But when I remove the firstName:fName from the Security.searchUser command it works.
So my question is, Why is the firstName not being recognized by the searchUser command?
Thanks,
Trent
Solved! Go to Solution.