svcUserAdmin getUsers no longer alphabetical
Problem reported by Ronald Raley - June 7, 2017 at 1:24 PM
Submitted
svcUserAdmin getUsers is no longer alphabetical.
 
Thanks,
Ron

8 Replies

Reply to Thread
0
echoDreamz Replied
If you are a dev, you can always use LINQ to fix the order until SmarterTools does. This works with C# and LINQ.
 
UserInfo[] usersOrdered = getUsersResult.Users.OrderBy(u => u.UserName).ToArray();

Christopher

0
Ronald Raley Replied
This issue was fixed a long time ago in SmarterMail 16.
 
Now we are seeing svcUserAdmin getUsers is no longer alphabetical again SmarterMail 16.16.3.6585.
 
Help from SmarterTools is appreciated.
 
Thanks,
Ron
0
Matthew Kides Replied
Employee Post
Hello Ronald, If you want this to be sorted by username alphabetically we can do so, its a simple change. But looking at the code this method has never attempted to sort the list it returns. Whatever language you are using to receive the data from the service should also have standard functions to sort the data.
Matthew Kides
Developer
SmarterTools Inc.
(877) 357-6278
www.smartertools.com
0
echoDreamz Replied
Thus my comment above. I have always applied a linq sort to the result list.

Christopher

0
Ronald Raley Replied
Our code is ColdFusion. Very simple.

<cfinvoke webservice="*****/Services/svcUserAdmin.asmx?WSDL" method="getUsers" returnvariable="getUsers">

Matthew, can you apply the sort? I do think it makes sense, in my opinion.
0
Ronald Raley Replied
Matthew and SmarterMail team:

Can we please simply sort svcUserAdmin getUsers
 
svcUserAdmin getAliases sorts great out-of-the-box!
 
Please help!
 
Thanks,
Ron
0
Matthew Kides Replied
Employee Post
Hello Ronald, I have changed this to sort by username ascending. Will be in our next release of 16.
Matthew Kides
Developer
SmarterTools Inc.
(877) 357-6278
www.smartertools.com
0
Ronald Raley Replied
Great news. Thank you very much.

Reply to Thread