Showing results for 
Search instead for 
Do you mean 
Community Home Request Access Read Blogs Share Your Ideas Search Community View My Settings
Avid Listener
Posts: 17
Registered: ‎04-03-2009

Application.Users.Item in .NET Extension?



What I am missing? 


I have a .NET Extension application and I am trying to get SecCodeID for the CurrentUser.


SalesLogix.SlxApplication2 slxApp = new SalesLogix.SlxApplication2();

string strUserID = slxApp.BasicFunctions.CurrentUserID();

string strSecCodeID = slxApp.Users.Item(strUserID).DefaultSecCodeID;  -- fails here


the applications fails:

'SalesLogix.Users' does not contain a definition for 'Item' and no extension method 'Item' accepting a first argument of type 'SalesLogix.Users' could be found (are you missing a using directive or an assembly reference?) 


I referenced


Sage.SalesLogix.NetExtensions.Core.dll (7.5.1)

Sage.SalesLogix.NetExtensions.Framework.dll (7.5.1)

SalesLogix Library



Copper Contributor
Posts: 7
Registered: ‎10-12-2009

Re: Application.Users.Item in .NET Extension?

There is no "Item" method on the SalesLogix.Users object. Instead, use