For one filter option I want to add to query filter in the record because the filter options are not in the cdt/table, when I apply 2 filters, it ignores the second filter.
How can I use multiple filter for recordfilter list?
Discussion posts and replies are publicly visible
Can you give us a bit more detail? What did you try?
if not done before i suggest reading this :)https://docs.appian.com/suite/help/22.2/fnc_system_a_recordfilterlist.htmlbut besides that stefan ist right.
So the filter I am adding is not in the cdt, I added custom filter options and one option can have two different query filters. When I add two filters, appian skipped the second filter.for example:
a!recordFilterListOption( id:1, name:"Show my tasks only", filter:{ a!queryFilter( field:assignedTo operator:"=", value:loggedInUser() ), if(a!isUserMemberOfGroup( username:loggedInUser(), groups:{}),
a!queryFilter( field: status operator: "=", value: cons!STATUS_RETURNED ), {} ) } ),
Is it intentional with line 13? a "}" is missing
a!recordFilterListOption( id:1, name:"Show my tasks only", filter:{ a!queryFilter( field:assignedTo operator:"=", value:loggedInUser() ), if( a!isUserMemberOfGroup( username:loggedInUser(), groups:{ ), a!queryFilter( field: status operator: "=", value: cons!STATUS_RETURNED ), {} ) } )
yeah its {} I removed the sensitive information from the code
A filter list option does only support a single queryFilter.
just to understand, you miss the effect of the second query filter or as second option to choose from as option?
I miss somehow the "" for the field values (as it has to be string)a!queryFilter( field: "status" operator: "=", value: cons!STATUS_RETURNED )
ah yes. always forget that. the parameter of the option already shows it its "filter" as parameter not "filters"
is there any way we can achieve this in record filter? my client wants the filter dropdown align with the record search bar, that's why the custom dropdown doesn't work here