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 / Populate Edit Form fro...
Power Apps
Unanswered

Populate Edit Form from DataSourceA save to DataSourceB

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have an app that uses a SharePoint list DataSourceA.  From Gallery it goes to detail screen. 

 

I need to have a second detail screen that shows only LastName and FirstName from DataSourceA but also had other datacards that connect to DataSourceB (also a Sharepoint list) and when the the user clicks the checkmark to save, all data from edit screen goes to DataBaseB.

 

Anybody?  Bueller?

Categories:
  • Brian Dang Profile Picture
    3,976 on at

    Hi @Anonymous,

    It sounds like you have two datasources on SharePoint:

    • DataSourceA: has LastName and FirstName that is also used for writing data in B
    • DataSourceB: needs LastName and FirstName from whatever is selected from A

    Here's the progression of your app as I inferred:

    1. User selects a record from a Gallery that is bound to DataSourceA. 
    2. The selected record provides the LastName and FirstName to an EditForm that is bound to DataSourceB
    3. User writes data to DataSourceB with the respective LastName and FirstName

    The underlying principle to learn here is learning how to reference the selected record in a gallery.

    In your Form for B, go to the DataCard where you want the FirstName. In its Default property, set it to

     

    Gallery.Selected.FirstName

    It will automatically retrieve the FirstName that's selected in the Gallery.

     

    You can use a condition to only show this name automatically if the form is in edit mode--since you probably want this field blank if the form is in NewForm mode.

     

    If(Form.Mode=FormMode.Edit,Gallery.Selected.FirstName,"")

     

    Repeat this for the LastName column. And revise it if you wanted the opposite to occur for Edit and New modes.

     

    Let me know if this was helpful with a thumbs up.

     

    Mr. Dang

    _______

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard