Skip to main content
durgav0001
January 9, 2023
Question

Keyword and non-keyword arguments must not be mixed. Used in: queryfilter.

  • January 9, 2023
  • 4 replies
  • 0 views

Hello, 
Am getting this error for the below code that am using to build the task interface.

Need your inputs and suggestions.

query: a!query(
filter: a!queryFilter(
field: "c5",
operator: "=", loggedInUser(),
value: local!statusFilter,
applyWhen: not(isnull(local!statusFilter)))
)

Thanks.

4 replies

January 9, 2023

Hi Durga, Can you please remove the loggedInUser() function beside operator and test it. It will work fine

konduruc733182
January 9, 2023

Hello durgav0001,

You are passing a value into the operator. 

hence the error.

harshitb6843
January 9, 2023

Updated code. 

a!query(
    filter: a!queryFilter(
        field: "c5",
        operator: "=",
        value: local!statusFilter,
        applyWhen: not(isnull(local!statusFilter)
        )
    )
)

durgav0001
January 9, 2023

Resolved the error, and code is working now.

local!test:a!queryProcessAnalytics(
report: cons!EC_MANAGER_TASK_PROCESS_REPORT_POINTER,
query: a!query(
filter: a!queryFilter(
field: "c5",
operator: "=",
value: local!statusFilter,
applyWhen: not(isnull(local!statusFilter))
),
pagingInfo: a!pagingInfo(1,5000)
)
),