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
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 12, 2022Copper Contributor
GrantJenkins you are a life saver, adding the get file properties and condition steps worked. Thanks for your help on this, and my other post 🙂