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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Patch to different Sha...
Power Apps
Unanswered

Patch to different SharePoint Lists based on dropdown answer

(0) ShareShare
ReportReport
Posted on by 19

Hi all!


I'm relatively new to PowerApps and currently building an accident reporting form, this has grown arms and legs but it's been quite enjoyable learning more as I go. I'm almost finished and have patching in place to send all answers to a list. But, now I'm going to need to patch this to multiple lists based on the location of the person logging the incident. I have the app grabbing the persons location so there won't be any human error (or less so). So ideally this would happen...

 

Person A is from Edinburgh, they will open and complete the app. The dropdown that collects the location will automatically populate Edinburgh so when they hit submit it will go to the Edinburgh SP List I've created.

Person B is from Glasgow, same thing again - once complete they hit submit and it goes to the Glasgow SP List.

 

Then I'm going to have a "master" List that collates all column values from the other Lists using Lookups or Power Automate - Not sure the best way yet. 

 

Here's an example of my current patch formula....

 

Set(varRecord, Patch(Results,Defaults(Results),{

    'Person Logging Incident':Person_Logging_Incident.Text,

    'Reference ID':Reference_ID.Text,

    'Affected Staff Member':PeoplePickerBox.Selected.UserPrincipalName,

    'Service Location':Dropdown_Service_Location.Selected.Result)

}));

 

If(!IsBlank(varRecord),

    Notify("Your Incident has been reported!", NotificationType.Success),

    Notify("Your Incident was not submitted", NotificationType.Error));

    Navigate(End_Screen,ScreenTransition.Fade)

 

 

Thanks in advance!!

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @JaseHolmez ,

     

    Maintaining so many data sources is not easy, not only in PowerApps but also especially in Power Automate, each data source needs a connection to be created, and for Power Automate you will need similar actions in one flow or different flows as many as the lists.

     

    I think the best approach is to use a Location column in the main list, which is the only one you need exactly. You can create Views with different locations, then the Patch function is what you are having now.

     

    May I ask why you need lists for different locations?

     

    Best regards,

  • JaseHolmez Profile Picture
    19 on at

    Hey @v-jefferni ,

     

    Thanks very much for replying! I did think about having this in one list and segregate using views, but the issue is permissions. People from Edinburgh can't see data from Glasgow and vice versa. I'm not aware of any way to lockdown based on created views? I've also had a look at item level permissions, but again I think it may be a lot of admin/management for the upkeep. 

     

    Very open to suggestions though and thanks for the help so far!

     

    Cheers.

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @JaseHolmez ,

     

    OK I understood. So, you can use the main list as the data source in SharePoint, and later you will need to use a flow with the HTTP action to create new items in dynamic child lists based on the main list:

    Create item in a dynamic SharePoint list/site with Power Automate (tomriha.com)

     

    Best regards,

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard