cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
viiksi
Level: Powered On

Getting multiple files when creating/moving file

Hello,


This is how it should go:
1. Filling up Form creates Sharepoint List item.
2. Then flow makes word document from the list items using word template to folder called "Waiting4Approval"
3. Then it makes approval (yes/no).

4. From approval state its either moving the word document to (Approved or Not Approved (In screenshosts they are in Finnish))

-------------------
And this is what i have problem.
Its doing list and word document to waiting4approval folder.
For some reason its making ~8 files to this waiting4approval folder and i get approval message for everyone.
Also the file doesnt even move to correct "Approved" folder and they are always moved to NotApproved folder.

Here is a bit sensored screenshots.

part1.JPGpart2.JPGpart3.JPG

2 ACCEPTED SOLUTIONS

Accepted Solutions
Super User
Super User

Re: Getting multiple files when creating/moving file

@viiksi 

In the condition following your approval action, change you should be referencing Outcome rather than Responses.

Also, I don't believe that you need the Get Items action and loop that follows - you can just reference the Create Item action.

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

Community Support Team
Community Support Team

Re: Getting multiple files when creating/moving file

 

Hi @viiksi ,

 

First, you need to replace the Response configured in Condition with Outcome.

Second, it is recommended to replace the Path in the Move file action / Move File 2 action with the Id output by the Create file action.

Third, it seems better to configure Link to item in Item link.

Fourth, you can configure Filter Query in Get items to filter newly created items.

56.PNG

Then you can consider making the following settings for Apply to each:

49.PNG

Please try again.

 

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

4 REPLIES 4
Super User
Super User

Re: Getting multiple files when creating/moving file

@viiksi 

In the condition following your approval action, change you should be referencing Outcome rather than Responses.

Also, I don't believe that you need the Get Items action and loop that follows - you can just reference the Create Item action.

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

Dual Super User
Dual Super User

Re: Getting multiple files when creating/moving file

Hey @viiksi 

 

Can you share more details? Why do you have the get items action over there? That action is bringing you the items from sharepoint list and as many items it is bringing, those many times the apply to each is running. If it for that particular item that you want this flow to run, then a get item should suffice. (but as you are creating the item here itself, you already have all the data so no need of get item as well)

 

Also, in the approval action for the item link you provided current item and this will fail as the current it will contain all the data of that particular item from the sp list in json format. You need to put the link to item over there. 

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Community Support Team
Community Support Team

Re: Getting multiple files when creating/moving file

 

Hi @viiksi ,

 

First, you need to replace the Response configured in Condition with Outcome.

Second, it is recommended to replace the Path in the Move file action / Move File 2 action with the Id output by the Create file action.

Third, it seems better to configure Link to item in Item link.

Fourth, you can configure Filter Query in Get items to filter newly created items.

56.PNG

Then you can consider making the following settings for Apply to each:

49.PNG

Please try again.

 

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

viiksi
Level: Powered On

Re: Getting multiple files when creating/moving file

Thanks for all in this thread.

Im quite new on this and with your help my "complicated" form thing works now.
I started it totally from scratch and learned some new things on the way.

 

Maybe someday i can make flow that i dont need to post here 😉

 

- Timo

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (5,414)