Forum Discussion
Save attachment from Outlook to Sharepoint and Check In
- Oct 12, 2022
I'm not entirely sure why you are getting List not found, but this is how I would go about copying email attachments to a SharePoint folder and checking them in (if currently checked out).
Note that for this example, my trigger only includes emails with a Subject "Files to copy" and only if they contain attachments, plus getting actual attachments. I assume you already have something like this.
Next is the main flow. Here I would loop over each of the attachments (could be one or more) and for each one:
- Create the file in SharePoint
- Get the file properties so we can check if it's checked out
- Condition to check that it's checked out using the file properties
- If it is checked out then check it in
- vww01Oct 11, 2022Copper Contributor
jefmeyer Hi, thanks for replying. The library is the same location copied from the "save file" step. The attachments aren't large, but there are a lot of them in the folder. I tried setting up the Check In step as a totally separate Flow, but it fails if there are any files in the folder that aren't checked out
- jefmeyerOct 12, 2022Iron ContributorDo you have any required metadata not being populated when the files are created? Have you tried to recreate the check-in step? I'd recommend keeping the check-in step in the same flow that creates the files. Do you need to have check out/in enabled on the library?