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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Please help stuck in a...
Power Automate
Unanswered

Please help stuck in automate

(0) ShareShare
ReportReport
Posted on by 3

I have created a MS form for survey and wanted to use power automate to transfer the response to sharepoint or onedrive including attachment/s. Ideally the response will divert to different folder depedning the answer on particular questions,e.g. if respondent answer he is from japan then the response data will be drop to japan folder and i will grant access to the japan manager only.

 

 

 

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Poweruser0509,

     

    You could collect the file content of the attachment and create a new file in the specific country folder.

     

    Below is an example.

    In this example I am retrieving the country from the user profile of the person responding. But you can also replace that Country by one of your questions. The approach would still be the same.

     

    1. The Get File Content uses the following expression to retrieve the id of the attached file

    Replace my question id r0d2c0ec03d734138a579ed7fdd378982 by your specific question id

     

    json(outputs('Get_response_details')?['body/r0d2c0ec03d734138a579ed7fdd378982'])[0]['id']

     

     

    2. The Create file uses the Country of the user profile and the name of the file attached. In the File name this expression was used

    Replace my question id r0d2c0ec03d734138a579ed7fdd378982 by your specific question id

     

    json(outputs('Get_response_details')?['body/r0d2c0ec03d734138a579ed7fdd378982'])[0]['name']

     

     

     

    country_userprofile.PNG

     

    This could be the setup with a question instead of the Country field from the user profile

     

    country_question.PNG

  • Poweruser0509 Profile Picture
    3 on at

    Hi @Expiscornovus, thank you so much for all detail.

    i have another questions, not sure if this can be automate or not? hope you can help!!

     

    i created a MS form and customer from different countries will fill out.

    1. i want the responses (e.g. age, gender etc) with attachment automate to 'LISTS' 

    For example: Peter from UK filled out MS form with his age, gender etc. and with an attachment, in LISTS 

    2. is it possible to add folder in list? because i want to restrict UK people seeing what other countires have submitted.

    3. if point 1 is fesible, can me and my colleague get notify when get submission? 

     

    we are moitoring the submission from worldwide so is a bit complicated. 

    thank you again and hope you can help me resolve this!!

     

     

     

     

     

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard