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

My Flow doesn't trigger.

Hello,

I am trying to copy the attachment from a SharePoint List to a Library (when an new item is created). Using FLOW I figure out that sometimes my workflow doesn't trrigger and I don't understand why. When I have created it, I done a test and the workflow worked properly...But when I created an new item in the list...it doesn't work...

My FLOW includes the next steps:

 

Capture.PNG

Does anyone knows why it happens that??? I really should find a solution, please.

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: My Flow doesn't trigger.

Hi @Madalina97 

 

Try with the following trigger condition added to the when a new item is added action (your flow trigger)

 

go to settings for this action

and add the following trigger condition

 

@equals(triggerBody()?['{HasAttachments}'],true)

 

This should onyl trigger the flow when a new item is added with a attachment

 

Regards,

Reza Dorrani

 

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

View solution in original post

7 REPLIES 7
Super User
Super User

Re: My Flow doesn't trigger.

Which flow plan are you on? I think the free one can take around 15 minutes sometimes.

Madalina97
Level: Powered On

Re: My Flow doesn't trigger.

Hello, Gristy. Thank you for response. I am using Office365 at my job..so I don't think it's a free version.

I take a look to the history flow run and I figure out that my FlOW was actually triggered..but without result.. As you can see in the picture...the "DURATION" is "00:00:00" when I creat an item in a list...Capture.PNG

I was waiting for 20minutes without result...my attachment doesn't copy in the library...

 

Community Support Team
Community Support Team

Re: My Flow doesn't trigger.

Hi @Madalina97 ,

 

Could you please check from the flow run history which's "DURATION" is "00:00:00" to see if the "Get attachment" action and the "Apply to each" has run ?

I'm afraid that the flow gas run with "DURATION" is "00:00:00" because the item don't have attachments.

 

1.png 

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Madalina97
Level: Powered On

Re: My Flow doesn't trigger.

Hello 

All items have attachments. When I "Resubmit" the FLOW with the DURATION 00:00:00, it works.

Madalina97
Level: Powered On

Re: My Flow doesn't trigger.

I see that"When an item is created" returns a FALSE result  even if the item has

attachments. How is possible this?? 

 

 

Capture.PNG

Super User
Super User

Re: My Flow doesn't trigger.

Hi,

 

I believe the way SharePoint works is to save the item first, then add the attachments. This is why resubmitting works.

 

It is likely that Flow is running too quickly.

 

In your flow instead of using the trigger body, use a Get Item and pass the ID from the trigger body. This will get a refreshed version of the list item. Maybe even adding a 1 minute pause so you are sure everything is good.

Dual Super User
Dual Super User

Re: My Flow doesn't trigger.

Hi @Madalina97 

 

Try with the following trigger condition added to the when a new item is added action (your flow trigger)

 

go to settings for this action

and add the following trigger condition

 

@equals(triggerBody()?['{HasAttachments}'],true)

 

This should onyl trigger the flow when a new item is added with a attachment

 

Regards,

Reza Dorrani

 

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

View solution in original post

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

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!

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 Power Automate Community Video Gallery!

Users online (5,095)