Skip to main content

Hi,

 

I have a For All items in a list loop, look up the User id and return the AD Name (using getuserdetails method within loop)

 

The List view has a bunch of UserIDs, however a couple of those users have left the organisation, so when it does the ADUser Smartobject method and it find the user does not exist, it says "Could not resolve user: UserID" but then quits.

 

How do i get it to continue down the Foor Loop if the user cannot be resolved?

I built something similar.  I use the "GetUsers" method and it seems to work.  Have you tried that?  I seem to recall getuserdetails doing the same thing to me.  

 

Rob

 

 


Hi Rob,

 

Thanks for the reply, funnily enough i then tried GetUsers and that works (just leaves the column blank for those users who have left), however what is weird is that the Top row of the list view ends up with three other blank columns, all other rows are fine. 

 

I have put a ticket in with k2 about this, i loop through all the rows and fill in the USER name column with the GetUsers For Loop, which does input the Names, but like i said, top row ends up with 3 empty columns...


Reply