AnsweredAssumed Answered

returned correct array with multiple objects, but array length is 0 - deferred?

Question asked by wgsl on Aug 24, 2016
Latest reply on Aug 25, 2016 by rscheitlin

Hello All, I have a simple method to get portal users by a role and put them in an array and return the array. Please see codes below. When I call the method and log the result, the array has two objects. But when i log the length of the result array, i got 0. The length should be 2, why 0 was returned? Is this related to the deferred object? I have no idea how to deal with deferred object. Please help!

 

 

 

results:

Outcomes