cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DanielaHo Advocate III
Advocate III

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
Frequent Visitor

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 Impactful Individual
Impactful Individual

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 Continued Contributor
Continued Contributor

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 🙂

 

Gary

JimmyWork Impactful Individual
Impactful Individual

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 Advocate III
Advocate III

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

dgkinetics
New Member

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

Hi there, 

 

I can't see the option of edit in advanced mode. is there another way to work with the "Condition"?

 

Thank you!

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Users online (6,476)