I created a smartobject from the User Role Manager Service. I am trying to get the list of users in a role using the Get Role User method. The method has a parameter called rolename that wants the name of the role. When i run the code, it tells me:
SmartObject property roleName is a required property for selected method GetRoleUsers. Value must be set.
Here is my code below:
ConnnectToSmartObjects(); //i connect to the server here
SmartObject smartobject = serverName.GetSmartObject("User_URM_Service"); SmartListMethod getlist = smartobject.ListMethods["GetRoleUsers"];
smartobject.MethodToExecute = getlist.Name;
Equals mainfilter = new Equals();
mainfilter.Left = new PropertyExpression("roleName", PropertyType.Text);
mainfilter.Right = new ValueExpression(rolename, PropertyType.Text);
getlist.Filter = mainfilter;
SmartObjectList smoList = serverName.ExecuteList(smartobject); //error here