Hello,
I'm new to Power Automate and looking for assistance! I'm trying to build a "Picture of the Day" on my SharePoint intranet homepage (modern communication site), and looking for a way with Power Automate. I had previously connected a list webpart and had a view built to show based on a column named "Show Date", but the image is too small. I'm hoping to use the column "show date" and make it so that a flow would copy a file to a new document library based on the show date matching [today]. Then have the flow rename the file to "picture of the day", so that the image viewer webpart would still be connecting to the same URL, and the image associated would rotate each day.
Below are my steps so far.
1. Run the flow every day at midnight
2. Delete the existing Comic of the Day from the Shared Documents library. (Doing it this way, so that when I hyperlink to this image on the homepage, the hyperlink will remain the same and not require me to update the homepage webpart.)
3. Get the properties of the Comic of the Day library?
4. Attempting to grab the file properties?
5. Applying the condition to only run for when: Show Date, is equal to, formatDateTime(utcNow(), 'yyyy-MM-dd')
6. If yes it matches the show date from above, copy the file to the Shared Documents folder.
7. Update the file properties to the name of "Comic of the Day". (Again doing this to maintain the hyperlink on the homepage to be the same.)
*in copy file 2 above, It shows copying it to /homepage comic folder, I updated this to send to the /documents folder.
I have the delete file working, but can't get it to grab the files.
Any help or pointers is greatly appreciated!! Or any other ideas/ways to achieve the end result.
Thanks,
Kevin Wolf