PureConnect

Discussion Thread View

Multiple filters when querying a ConfigurationList (IceLib)

  • 1.  Multiple filters when querying a ConfigurationList (IceLib)

    Posted 02-11-2021 12:08
    Hi,

    I know when interacting with ConfigurationLists in IceLib you can define filters (SetFilterDefinition()). Does anyone know if it is possible to set multiple filters rather than just one?

    E.g. If I do this (as an example), I guess it just overrides the first filter definition I add with the second?

    Thank you.

                newQuerySettings.SetFilterDefinition(UserConfiguration.Property.AccessControlGroupAssignment, accessControlGroup, FilterMatchType.Exact);
                newQuerySettings.SetFilterDefinition(UserConfiguration.Property.DisplayName, "John Smith", FilterMatchType.Exact);​

    ----
                var newQuerySettings = userConfigurationList.CreateQuerySettings();
                newQuerySettings.SetPropertiesToRetrieve(
                                                        UserConfiguration.Property.DisplayName,
                                                        UserConfiguration.Property.Id,
                                                        UserConfiguration.Property.License_LicenseActive,
                                                        UserConfiguration.Property.License_AdditionalLicenses
                                                        );
                newQuerySettings.SetFilterDefinition(UserConfiguration.Property.AccessControlGroupAssignment, accessControlGroup, FilterMatchType.Exact);
                newQuerySettings.SetRightsFilterToView();
                userConfigurationList.StartCaching(newQuerySettings);​

    #Implementation
    #Integrations
    #Unsure/Other

    ------------------------------
    James Dunn
    Pitney Bowes Inc.
    ------------------------------