cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ExtraRice
Frequent Visitor

Getting the latest Approval Date from three Approvers

Hello,

 

I am having a hard time to get the latest date of approval from the three approvers set on parallel approval in flow.

 

I wanted to get the latest approved date so that once the last approver approve the request, it will trigger the next approval flow..

ExtraRice_0-1646566503418.png

Many thanks.

2 ACCEPTED SOLUTIONS

Accepted Solutions
v-jefferni
Community Support
Community Support

Hi @ExtraRice ,

 

Well, the solution is to use 2 conditions:

1. Condition1: compare variable 1 and 2, get the later one and store in variable 4.

2. Condition2: compare variable 4 and 3, get the later one which is the latest of the three.

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

takolota
Memorable Member
Memorable Member

You should also be able to use the Max(date1, date2, date3) expression for this.

 

If the Max function doesn’t allow dates, then just use ticks, so 

addSeconds('0001-01-01',div(max(ticks(date1), ticks(date2), ticks(date3))),10000000))

 

View solution in original post

2 REPLIES 2
v-jefferni
Community Support
Community Support

Hi @ExtraRice ,

 

Well, the solution is to use 2 conditions:

1. Condition1: compare variable 1 and 2, get the later one and store in variable 4.

2. Condition2: compare variable 4 and 3, get the later one which is the latest of the three.

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

takolota
Memorable Member
Memorable Member

You should also be able to use the Max(date1, date2, date3) expression for this.

 

If the Max function doesn’t allow dates, then just use ticks, so 

addSeconds('0001-01-01',div(max(ticks(date1), ticks(date2), ticks(date3))),10000000))

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,551)