cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kjwolf326
Frequent Visitor

Copy Attachment based on OData filter

Hello!

I'm working on a flow to read a data set with manually set dates, one for each day for the next 2 years.  I have both a list and document library, tried both with similar results.  I'm trying to copy the image when the date matches today's date.  Below are the steps I've built so far, but I'm getting an error that the file can't be verified, even though I can click on the link in the error and it takes me right to the correct image file.  

 

I feel like I'm close with this one, but either not passing the correct query or am grabbing the wrong file.  Any help or pointers is greatly appreciated.  

 

Current flow and errors

1. Recurrance - Run every day at midnight

2. Grab the current date/time

3. Connect to root site, filter based on custom date column.  Format date time expression is: 

formatDateTime(body('Current_time'),'MM-dd-yyyy')
1-3.PNG
 
4.  Copy the file that was filtered out from step 3 into the Shared Document folder.  
 

 

4.PNG
 
Thank you
Kevin

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

 

Hi @kjwolf326 ,

 

It seems that you want to copy the attachments contained in the list item to the library. You can refer to the following configuration to achieve this requirement.

41.PNG42.PNG

 

Best Regards,

Community Support Team _ Barry
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

1 REPLY 1
v-bacao-msft
Community Support
Community Support

 

Hi @kjwolf326 ,

 

It seems that you want to copy the attachments contained in the list item to the library. You can refer to the following configuration to achieve this requirement.

41.PNG42.PNG

 

Best Regards,

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

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.

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.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (3,578)