Skip to main content
September 21, 2022
Question

Need clarification on query rules

  • September 21, 2022
  • 4 replies
  • 0 views

 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
    September 21, 2022

    What kind of clarification are you looking for?

    September 21, 2022

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

    mikes0011
    Brainy
    September 21, 2022
    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