web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Sending attachment to ...
Power Automate
Unanswered

Sending attachment to SharePoint library to newly created folder

(0) ShareShare
ReportReport
Posted on by 5

Introduction: I have SharePoint list. When new item is being created, it is mandatory to add attachments. When item is submitted, my Flow should create a new folder with a name of item Title and add into it attachments.

 

Problem: The Flow works some times successfully, creating new folder and adding there all attachments. However some times it just misses 1 of X files.

 

Checking: When I open Flow, I can see that "Get attachments" processed X-1 files.

 

When this works 100%: If I delete "Create new folder" it works all time. However, the attachments are being saved in some root folder and it will make mess, because it will not be sorted by folders.

 

My Flow:

image.png

Categories:
I have the same question (0)
  • Verified answer
    MattWeston365 Profile Picture
    1,701 on at
    Re: Sending attachment to SharePoint library to newly created folder

    Hi @Salauat for me at the moment it sounds like a timing issue, i.e. it's trying to store a document before the API call to create the folder has fully completed. When I go on my lunch I'll try to build it and see if I can replicate the issue, but can I just ask how many attachments you're working with?

     

    A couple of suggestions in the meantime:

     

    1. Can you Create the folder before you start to process the attachments? So rather than having the create folder action inside the apply to each can I be done before start the loop?

     

    2. Can you put a small delay after the create folder action to again ensure that the process has completed before creating the file?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard