View this page in the latest version of Appian. Configure Default Filters Share Share via LinkedIn Reddit Email Copy Link Print On This Page This page describes how to configure default filters on legacy record types. If you're using a synced record type, configure sync filters instead. Note: Default filters are not applicable to record types that use a web service as the source. Instead, you can use the record data source expression to conditionally filter out data. What are default filters? Default filters allow you to specify which records appear in the record list and record views based on the conditions you specify. When a record is filtered out by a default filter: The record does not show up in the record list. The record is not returned in queries on that record type. Users may not access the views on the record. Each default filter defines a condition that must be true for a record to display in the list. If you have multiple conditions, the record must meet all conditions in order to display. For example, in a Case record type, you may want case managers to view all customer support cases, but you only want support engineers to see the cases that are assigned to them. Using a default filter, you could create a filter condition that states if a logged in user is a member of the Support Engineers group, only return cases assigned to the logged in user; Otherwise, return all customer support cases. Tip: If you're using a synced or unsynced record type, you can use record-level security to achieve this same use case. Add default filters To create a default filter, use one of the following options: By Field: Allows you to apply multiple default filters joined by an AND union. Expression: Allows you to apply more complex filters by entering an expression containing a list of a!queryFilter() or a!queryLogicalExpression(). By field Creating filters by field allows you to easily set up filters using three criteria: Field, Operator, and Value. Multiple filters are combined using the AND operator. To create a default filter by field: In your record type, go to Source & Default Filters. Keep the default selection of By Field. Click on New Default Filter. Click the Field dropdown and select the record field that you want to set as the default filter. Select the appropriate comparison from the Operator dropdown. Enter the value for the comparison in the Value field. This is an expression field, so encase text values in quotes. Click OK. Click SAVE. Expression Creating filters using an expression allows you to create more complex filters. When configuring sync filters in expression mode, you must use an expression containing a list of a!queryFilter() or a!queryLogicalExpression(). To create a default filter using an expression: In your record type, go to Source & Default Filters. Select Expression. In the expression editor, enter an expression that returns a list of queryFilter or queryLogicalExpression. Click OK. Click SAVE. For example, the following default filter expression returns cases that are either assigned to the logged in user, or cases that are not assigned to the "Global Users" group but are either Urgent or High priority: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 /* (Assigned to User OR (NOT Assigned to "Global Users" AND (priority="Urgent" OR priority="High"))) */ if(a!isUserMemberOfGroup(loggedInUser(),cons!CASE_GROUP_GLOBAL_VIEWERS), {}, a!queryLogicalExpression( operator: "OR", logicalExpressions: { a!queryLogicalExpression( operator: "AND", filters: a!queryFilter( field: "userName", operator: "=", value: loggedInUser()) ), a!queryLogicalExpression( operator: "AND", logicalExpressions: { a!queryLogicalExpression( operator: "AND", filters: a!queryFilter( field: "userName", operator: "<>", value: cons!CASE_ADMIN_DB_KEY_1) ), a!queryLogicalExpression( operator: "OR", filters: { a!queryFilter(field: "priority", operator: "=", value: "Urgent"), a!queryFilter(field: "priority", operator: "=", value: "High") } ) } ) } ) ) Feedback Was this page helpful? SHARE FEEDBACK Loading...