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

Copy attachments from a SP list to a SP Library.

Hello, I create an PA App starting from a SP List. The App allows to add atachments which are stored in SP List. I want the attachments to be copyed from SP List to a SP Library.
I created a FLOW which are triggered "When an item is created"  and I observed that when I upload pictures in PA from phone's Gallery, the FLOW works properly. The photos which are uploaded from Camera are not copyed. I descovered that if I resubmit the FLOW, these photos are copyed also...How should I do to resolve this problem?

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Copy attachments from a SP list to a SP Library.

Hi @Madalina97 

 

Another option would be to let the Flow get treiggered, introduce a delay in your flow for 5-10 mins and then again read the list item using the get item action and then move your files

 

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

3 REPLIES 3
Dual Super User
Dual Super User

Re: Copy attachments from a SP list to a SP Library.

Hi @Madalina97 

 

Did you try with the trigger condition for the when an item is created trigger in flow

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

 

 

Madalina97
Level: Powered On

Re: Copy attachments from a SP list to a SP Library.

Hello RezaDorrani,
Thank you for the reply. I tried what you said but the photos still are not copied. If I upload the photos from the phone's Gallery it is work without problems.But from Camera it doesn't. Could it be a problem from PowerApps?? There is any possibility to resubmit automatically a flow?
Dual Super User
Dual Super User

Re: Copy attachments from a SP list to a SP Library.

Hi @Madalina97 

 

Another option would be to let the Flow get treiggered, introduce a delay in your flow for 5-10 mins and then again read the list item using the get item action and then move your files

 

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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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
Currently online: 215 members 5,316 guests
Please welcome our newest community members: