cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PNW_Builder
Regular Visitor

Select Action only reading first version

Hi All,

 

I am creating a flow for when an item is assigned to a user, it will send an email. I have the flow complete, but I can't get my select step to read 2 versions, even though the Get step is showing both. Thus, the condition always reads as true, because select is showing the same version twice.

 

Does any one have any advice on getting Select to read 2 different versions and output that data for conditions?

 

Screenshots:

Screen1.PNGScreen2.PNGScreen3.PNGScreen4.PNG

 

Thanks for any help you can provide.

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @PNW_Builder 

 

Let me know if this works:

You can use:

'Get changes for an item or file' action right after your trigger. Pass in the ID. and use this expression for the Since field:

sub(int(triggerOutputs()?['body/{VersionNumber}']),1)

Jcook_1-1601414321751.png

 

Now in your condition, you will have dynamic content for each field that can be changed.

Use the expression true on the right side of condition

Jcook_2-1601414487422.png

 

Now in the True block put your email action.

 

In the False block, put your terminate.

 

 

 


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





View solution in original post

6 REPLIES 6
Jcook
MVP

Hello @PNW_Builder 

 

Can you share a screenshot of your full flow?

 

is the select action being used inside a loop?


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





Screen5.PNG

 

Here is my full flow. I don't think its a loop, but I am not very good with these flows yet.

Hi @PNW_Builder 

 

Just so I understand,

Your condition is checking the first version, and the last version. And if its the same do nothing but if versions are different than you want to send an email?

 

What information are you sending in your email? This will help me figure out a solution for you.


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





Correct. Its a custom email to the team member the item is assigned to explaining what has been assigned to them.

 

The overall goal is to send the email only when the assigned to column is changed, not every time the item is edited. So, the select step should be pulling the version number and assigned to display name of the last 2 versions. That way the condition can check if the assigned to field has changed, and send the email as needed.

Hi @PNW_Builder 

 

Let me know if this works:

You can use:

'Get changes for an item or file' action right after your trigger. Pass in the ID. and use this expression for the Since field:

sub(int(triggerOutputs()?['body/{VersionNumber}']),1)

Jcook_1-1601414321751.png

 

Now in your condition, you will have dynamic content for each field that can be changed.

Use the expression true on the right side of condition

Jcook_2-1601414487422.png

 

Now in the True block put your email action.

 

In the False block, put your terminate.

 

 

 


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





Simple, easy to follow, and worked first time.

 

Thanks for your help, looks like I was overthinking it!

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 (2,114)