Flow Exchange

Please login or click SIGN UP FOR FREE to create your FlowUG account to join this user group.
Expand all | Collapse all

Flow limitations

  • 1.  Flow limitations

    Posted Mar 25, 2019 10:13 AM

    I am very new to Flow.  I have one situation and I would like your inputs. I will develop an approval process.  The requester submits the request, the flow (Flow 1) will auto trigger [when a new item is created] and send an email to the first level approver (approver 1).  Approver 1 approves and it will go to the approver 2 and then approver 3.  After the approver 3 is approved,  Flow 1 is done. I don't know how long it would take for each approver to approve.  I read this article from MS and it says run duration is 30 days.  After 30 days, any pending steps will be timed out.  If anyone attempts to approve a timed-out request, the will receive an error. I also see that there is way that you can send a reminder email to approvers. I am wondering how 30 days limitation would work here? Is it 30 days? I have seen someone say they see timed out requests before 30 days.  If the approval process can't be within 30 days, it can go more than 30 days, what would be the best way to archive this? 

    A admin will go to SP [Flow 2 when an item is created or modified] List and change the status, Flow 2 will trigger to send an email.  Flow 2 ends.  Flow 3 will trigger when a status changes to "Completed" and an email is sent.  Flow 3 ends.

     

    I appreciate your inputs.



    ------------------------------
    Thien Nguyen
    919-855-3152
    ------------------------------


  • 2.  RE: Flow limitations

    Bronze Contributor
    Posted Mar 26, 2019 04:16 AM
    You can change the timeout of an approval action in the settings of the action itself. Click the 3 dots top right and then Settings. The timeout period is in in ISO8601 format, e.g. P3H would be 3 hours or P1D is one day (24 hours). The next step in the flow is what you want to do when the timeout expires, send an email perhaps. Clicks its 3 dots and click Configure Ran after. Set that to when the previous action has timed out. The next action, which you take when the approval has been processed, set the Configure run after to when the previous step has skipped.

    This short video explains it.

    ------------------------------
    Will Page
    Technical consultant
    +64210436716
    ------------------------------



  • 3.  RE: Flow limitations

    Posted Mar 26, 2019 08:06 AM
    Here is another good article.  The trick in this one is to set the timeout for 29 days on the approval.  If it fails, call the same flow via an HTTP request.  The original approval will time out, but a new one will kick off instead.

    ------------------------------
    Haniel Croitoru
    Consultant
    Toronto ON
    4162745708
    ------------------------------



  • 4.  RE: Flow limitations

    Posted Mar 26, 2019 12:06 PM
    Thank for your the suggestion.  The second approval triggers when the first flow times out.  Does it mean the running flow is being reset to 30 days again?

    ------------------------------
    Thien Nguyen
    919-855-3152
    ------------------------------



  • 5.  RE: Flow limitations

    Posted Apr 02, 2019 11:27 PM
    Sort of.  It's kicking off a new flow that will run for another 29 days (and so on).

    Hope that helps.

    ------------------------------
    Haniel Croitoru
    Consultant
    Toronto ON
    4162745708
    ------------------------------



  • 6.  RE: Flow limitations

    Posted Apr 09, 2019 12:29 PM
    ​I have struggle with the logic and hope someone can help.

    I have 2 Flows:
    Parent Flow

    Child Flow:
    On the approval, I set for the flow to expire after 15 mins if the approval is not approved.  The HTTP POST is set as Configure run after the approval is timeout.
    Two problems that I have and I am not sure how to fix it and I hope someone can help:

    1) If a new item is created and it is approved within 15 mins, the condition is skipped because it the HTTP POST is skipped so the email for approval is not sent.
    2) If a new item is created and it is not being approved after 15 mins, I receive an email again asking for approval which is correct.  In addition, the response in the condition is false and it executes the send email with the item is rejected which is wrong.

    What I would like to achieve is :
    1) If the approval is approved within 15 mins, it skips the HTTP and condition is executed and email is sent with approved status.
    2) If the approval is not approved after 15 mins, HTTP POST is called and the email is sent and the flow resets again until it is either approved or rejected.


    ------------------------------
    Thien Nguyen
    919-855-3152
    ------------------------------



  • 7.  RE: Flow limitations

    Bronze Contributor
    Posted Apr 09, 2019 08:55 PM
    Set the HTTP action Run After property to "Start and ait for an approval" is timed out. Set the approval timeout to 15 minutes. Set the Condition run after setting to HTTP is skipped.

    The flow run might show as failed in the status when the approval times out (even though logically, it worked), so you can catch that with a terminate control.

    ------------------------------
    Will Page
    Technical consultant
    +64210436716
    ------------------------------



  • 8.  RE: Flow limitations

    Posted Apr 18, 2019 12:54 PM
    ​The flow is reset every 15 mins if the approver 1 is not approved or rejected.  Now I am moving over the test the next logic.  As soon as the first approver is approved or rejected, the second approver will receive an email for approving.  The problem is just like the first approver, we don't know how long it will take for the second approver to approve/reject and I need for the flow to be reset but not going back to the beginning [the first approver needs to approve again).  I added the HTTP POST and the flow restarts from the beginning if the approver 2 is not approved within 15 mins. I am wondering what kind of logics should it be implemented?    My business users said the approval process can takes months and each approver can take more than a month to approve/reject.

    I appreciate your inputs.

    ------------------------------
    Thien Nguyen
    919-855-3152
    ------------------------------



  • 9.  RE: Flow limitations

    Posted Apr 23, 2019 10:55 AM
    ​I think I got it figure it out.  Thank you.

    ------------------------------
    Thien Nguyen
    919-855-3152
    ------------------------------