AppColl Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Groups

    Trigger Event: "While an expression ... evaluates true in..."

    General
    2
    3
    73
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      BerndN5890 last edited by

      886ee532-13f7-4739-ab94-ceb0a5dc9e70-image.png

      Any ideas how to get this trigger to work? It is supposed to limit triggers to matters in which the priority date is more than 500 days ago, but does not seem to do the job. Couldn't find a good description of expressions that can be used in triggers anywhere.

      1 Reply Last reply Reply Quote 0
      • B
        BerndN5890 last edited by

        Turns out the expression also requires curly brackets...

        AND while the expression 'x<#{General.Now(-500d)}# using the 'PriorityDate' field in the matter is true.

        31775d21-f2cb-4fa4-82a8-f79fa511c2f1-image.png

        1 Reply Last reply Reply Quote 1
        • JonahP1621
          JonahP1621 last edited by

          I don't know, but I'm going to take a guess.

          "While an expression using the value in a field in the matter is true" makes me think that the trigger only occurs if the selected Field is in the expression. The Field PriorityDate is not in the expression "<DateTime.Now.AddDays(-500)".

          I see an AppColl Support page here.
          https://support.appcoll.com/tasks/create-task-types-that-are-date-dependent

          In their example TaskTypes, they use a letter x in a place where I would expect the selected Field value to appear.

          So, perhaps your expression would work if you add an x before your '<' such as this.

          "x<DateTime.Now.AddDays(-500)".

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          • First post
            Last post

          0
          Online

          250
          Users

          219
          Topics

          531
          Posts