cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
DanielaHo
Level: Powered On

Re: Flow: Existing item is modified triggers when a new item is created in Sharepoint list

Hi, 

Are you finding that the flow works reliably? 

I am finding that the condition Created = Modified sometimes triggers as 'false' because the times appear to be 1 second apart for newly created items:

 

Capture.JPG

Blouwagie2
Level: Powered On

Re: Flow: Existing item is modified triggers when a new item is created in Sharepoint list

Hi,

I have an idea, I tried it, and it works, when an item is created it is version 1.0,

For that to work you need to go to List settings, versioning. You can turn this on for any list.

An updated list item has a version that is bigger than 1 and in your condition you can just use that. In my trials it:  Control (int(triggerBody()?['{VersionNumber}']) equals 1)

 works a better than:  Switch (@equals(triggerBody()?['Created'], triggerBody()?['Modified']).

 

JimmyWork
Level 8

Re: Flow: Existing item is modified triggers when a new item is created in Sharepoint list

@Blouwagie2 This was really helpful, thank you very much

gazzo1967
Level 8

Re: Flow: Existing item is modified triggers when a new item is created in Sharepoint list

@Blouwagie2 

Could ypu post image of flow?

It would show how to build the control Smiley Happy

 

Gary

JimmyWork
Level 8

Re: Flow: Existing item is modified triggers when a new item is created in Sharepoint list

@gazzo1967 

 

Create a condition

First conditon type expression: int(triggerBody()?['{VersionNumber}'])

is equal to

1

 

now this is all thanks @Blouwagie2 flow.png

DanielaHo
Level: Powered On

Re: Flow: Existing item is modified triggers when a new item is created in Sharepoint list

Great suggestion - just tested and it works well! Thank you Smiley Happy

Just adding to this, it only works when version control on the list is enabled, else the item will stay version number 1 even when it is edited: 

Capture1.PNG

Helpful resources

Announcements
firstImage

Microsoft Flow Online Conference

Join us for a FULL day of FREE Microsoft Flow Sessions from some of the best minds in the industry!

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

thirdImage

New Flow Community Board!

Check out the new Microsoft Flow Community Blog Topic Suggestion board!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 210 members 4,429 guests
Please welcome our newest community members: