Skip to main content
Known Participant
Sep 21, 2022 2:15 PM UTC
Question

Need clarification on query rules

 a!queryFilter(
          field: "completiondate",
          operator: "between",
          value: {today() - weekday(today(), 2) + 1, today()}
        )
      },
      ignoreFiltersWithEmptyValues: true
    ),

Need clarification For value : ( 4 th line ) 

    4 replies

    stefanhelzle0001
    Brainy
    Sep 21, 2022 2:33 PM UTC

    What kind of clarification are you looking for?

    Known Participant
    Sep 21, 2022 2:36 PM UTC

    i did't understand 'weekday(today(), 2) + 1' that does it returns 

    mikes0011
    Brainy
    Sep 21, 2022 2:44 PM UTC
    i did't understand 'weekday(today(), 2) + 1'

    In case this helps, Appian has a whole documentation website, which includes definitions of every available function (plus other neat stuff).  When I was first learning I always kept the "all functions" site open in a browser tab and would just pick through and read up on different functions as i tried to figure out how to do different things.

    The Expression Guru