Tuesday, May 17, 2011

Getting list of all associated Goups with user in AX

static void WI_GetUserGroups(Args _args)
{
    UserGroupList  lUserGroupList;
     ;

    WHILE SELECT lUserGroupList WHERE lUserGroupList.userId == curuserid()
    {
         info(lUserGroupList.GroupId);
    }
}

No comments:

Post a Comment