cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Auto save Forms answers of scpecific Sharepoint and folder based on Forms answers

Hi there,

I have a forms that i would like to automate using flow.

So, based on some questions anwsers i would like to save them on an excel file on a specific folder and on a specific Sharepoint. If needed the flow should create a new folder to save the excel with the anwsers.

let me explain with an example:

 

1º forms question:

what is your company name:

Company A

Company B

Company C

Company D

(Each Company is a Sharepoint, so the results shold be saved on that sharepoint. If the user chooses Company A, the anwsers should be saved on the Comapny A Sharepoint.)

 

Second forms question:

What is your department?

Department 1A

Department 2A

Department 3A

( Each department is a folder inside each Companys Sharepoint. i've already stablished conditions on forms so i can't choose the Company A and the Companys 1B department)

 

thrid forms question:

What is your class name?

(text question)

(Based on the anwser of the user it's created a new folder with the anwser to this question and inside of that folder would be created the excel file with the answer of one or more users)

 

Example:

9 users anwsers to the forms:

Question 1:

Answer: Company B

Question 2:

Answer: Department 1B

Question3:

Anwser: 042

The Flow should create an excel file with 9 answers on the Sharepoint of the Company B, folder Department 1B, subfolder 042

 

Is this possible to do?

Thank you very much!

Regards

the flow should save

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: Auto save Forms answers of scpecific Sharepoint and folder based on Forms answers

@absint0o  to do what you wnat please follow this example 

wsith.PNG

 

my form

 

form.PNG

 

see I did it form company A, so you need to reply this to company B



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

View solution in original post

14 REPLIES 14
Highlighted
Super User III
Super User III

Re: Auto save Forms answers of scpecific Sharepoint and folder based on Forms answers

hi @absint0o  I posted a solution to create a folder an the actachment of the folder recently, please follow the example to see if its what you need.

f1.PNG

f2.PNG



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA
Highlighted
Helper I
Helper I

Re: Auto save Forms answers of scpecific Sharepoint and folder based on Forms answers

Thank you very much for your fast reply!

 

I don't understand your example flow, because i'm only working with the Microsoft Forms and not via email.

Highlighted
Super User III
Super User III

Re: Auto save Forms answers of scpecific Sharepoint and folder based on Forms answers

@absint0o  here is an example with msforms.

1file.PNG2file.PNG3file.PNG

 

as you see Im getting the name of file uploaded to create a folder and inside the file uploaded to the form



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA
Highlighted
Helper I
Helper I

Re: Auto save Forms answers of scpecific Sharepoint and folder based on Forms answers

What should i put on the response id?

flow1.png

 

I'm still trying to understand your example... so, based on the 3 first answers given within the form so a file would be saved on a sharepoint, a folder and a subfolder right?

Highlighted
Super User III
Super User III

Re: Auto save Forms answers of scpecific Sharepoint and folder based on Forms answers

@absint0o  when you clic inside the field see this windows

expresions.PNG

 

Please select dynamic content to see the ID you need



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA
Highlighted
Helper I
Helper I

Re: Auto save Forms answers of scpecific Sharepoint and folder based on Forms answers

Hi there,

This was what i've got after running the flow (submitting a form):

flow2.png

 

inside of the parse JSON i've wrote:

{
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"link": {
"type": "string"
}
}
}
}

flow3.png

Highlighted
Super User III
Super User III

Re: Auto save Forms answers of scpecific Sharepoint and folder based on Forms answers

@absint0o  maeby is becouse you don't send attachment and you don't have a schema so.

Please try adding a condition.

Flow3.PNG



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA
Highlighted
Helper I
Helper I

Re: Auto save Forms answers of scpecific Sharepoint and folder based on Forms answers

sorry Christian, i'm not getting there with this thing of sending emails and create an work item.

My goal is when this form is submitted:

flow4.png

 

  • If choosen Company A save the file on company A sharepoint, if choosen B save the file on company B sharepoint;
  • if choosen department 1 save on department 1 folder (Company A or B based on what was choosen before) if choosen department 2 save on department 2 folder (Company A or B based on what was choosen before)
  • create a subfolder inside department 1 or 2 (based on what was choosen before) with the name that was wrtiten on question 3
Highlighted
Helper I
Helper I

Re: Auto save Forms answers of scpecific Sharepoint and folder based on Forms answers

i think that is also another way of doing this.

So, all of my answers are being saved on a single excel:

flow6.png

 

flow5.png

so, if i can each time a new form is submitted filter out the excel to show only the Company A, department 1 and create a new subfolder to all diffrerent classes and save the excel with only that information would also work pretty well!

Highlighted
Helper I
Helper I

Re: Auto save Forms answers of scpecific Sharepoint and folder based on Forms answers

So, i've managed to succesfuly create a sub-folder based on an answer given on an forms, and the sub-folder is being created based on a condition, now my problem is how can i save on that sub-folder, all the results that only lead to that condition?

flow7.png

so, inside the sub-folder that is being created with the condition i want to create a file (excel) containing all the results that match the conditions (in this case: Company A), can you help me?

Highlighted
Super User III
Super User III

Re: Auto save Forms answers of scpecific Sharepoint and folder based on Forms answers

@absint0o  to do what you wnat please follow this example 

wsith.PNG

 

my form

 

form.PNG

 

see I did it form company A, so you need to reply this to company B



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

View solution in original post

Highlighted
Community Support
Community Support

Re: Auto save Forms answers of scpecific Sharepoint and folder based on Forms answers

Hi @absint0o,

 

I think there is no direct way could achieve your goal, because the user's answer is uncertain cause the Excel file to be added is uncertain, the Excel connector does not support that select excel file path dynamically. 

 

  • As a workaround, you could create a SharePoint subsite contains multiple SharePoint lists to collect these responses of MS Form.

 

  • Or just like you said, use the "Export all" feature of MS Form, after all responses submit, filter out these responses according to the company name, department name, and class name:

Annotation 2020-04-07 153640.png

 

  • Also, there is a way to create a folder according to the company name, department name, and class name, but record an uncertain response into the uncertain Excel file, just like I said, it is hard to do:Annotation 2020-04-07 152229.png

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Highlighted
Helper I
Helper I

Re: Auto save Forms answers of scpecific Sharepoint and folder based on Forms answers

thank you for all for your replies!

 

"Or just like you said, use the "Export all" feature of MS Form, after all responses submit, filter out these responses according to the company name, department name, and class name:"

And there's any way (automated or not) to filter out the responses and save separated files by different "classes" and saved in different folders?

thank you very much for your help @ChristianAbata and @v-litu-msft !!!!

 

 

Highlighted
Super User III
Super User III

Re: Auto save Forms answers of scpecific Sharepoint and folder based on Forms answers

@absint0o  you are welcome friend, please consider to mark an answer as solution to guide others.



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

Helpful resources

Announcements
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Top Kudoed Authors
Users online (3,941)