time comparisons

 4 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
Karen Sheridan
Veteran Member
Posts: 142
Veteran Member
    I want to run a flow every hour to send an email to anyone that has updated their pending benefits (bnben) since the last time the flow ran.

    I don't really see any time functions to use for this comparison.  I was just going to grab the system time and subtract one, but someone has a better idea - I'm open.

    TIA,
    Karen

    David Williams
    Veteran Member
    Posts: 1127
    Veteran Member
      Do you have SmartNotes? This is a perfect task for that tool.
      David Williams
      Karen Sheridan
      Veteran Member
      Posts: 142
      Veteran Member
        No we don't have SmartNotes - Thanks
        Sam Simpson
        Veteran Member
        Posts: 239
        Veteran Member
          Instead of scheduling a flow every hours would it be better if you have a flow that is triggered by either BN32 (or BN31 or ESS)? This way the flow will run every time there are changes to benefits. Hope this helps.
          Karen Sheridan
          Veteran Member
          Posts: 142
          Veteran Member
            BS31 is the token that is used; however, the updatedb.js appears to be hitting it twice every time (twice on an add and twice on a change) - so the employees are getting duplicate emails.