Showing results for 
Search instead for 
Do you mean 
Community Home Request Access Read Blogs Share Your Ideas Search Community View My Settings
Reply
Highlighted
Copper Super Contributor
Posts: 61
Registered: ‎08-12-2009

Slx web 7 5 2 Get contact 'ids from a selected group ( group selected in a picklist)

Hello,

I want to retrieve all the contact's from a selected group (the group is selected  in a list of all contact's groups.)

 

I try to use the method GetGroupIDs, but it's not recognize. When I look to the version of the dll with reflector it's the right version. I read that this method is now working properly.

 

"Assembly Sage.Saleslogix.Client.GroupBuilder version 7.5.2.2208"

 

what's wrong..

 

I think also that this method works only  for the current group. How can I then retrieve those contactid's

 

Thanks for your help.

Highlighted
Copper Elite Contributor
Posts: 39
Registered: ‎07-13-2010

Re: Slx web 7 5 2 Get contact 'ids from a selected group ( group selected in a picklist)

Did you use a custom smartpart?

 

I used this code in a custom smartpart and was able to get the ids of my current group:

 

[using Sage.SalesLogix.Client.GroupBuilder;]

 

string myGroupID = GroupContext.GetGroupContext().CurrentGroupID;
            if (myGroupID != null)
            {
                GroupInfo groupInfo = GroupInfo.GetGroupInfo(myGroupID);
                if (groupInfo != null)
                {
                    myList = groupInfo.GetGroupIDs();
                }
            }