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 / working with multiple ...
Power Apps
Answered

working with multiple sharepoint lists

(0) ShareShare
ReportReport
Posted on by 124

Dears,

 

I do have 2 sharepoint list as the datasource to work with.

 

  1. stationary request master
  2. stationary request detail

Once i insert a record in the master datasource (stationary request master), i need to get the ID of that inserted record. Then i will get that ID and needs to insert some data to the detailed list (stationary request detail) in addition to some other fields.

 

I wanted to achieve the aboev funationality using PowerApps + Microsoft Flow (in case if its needed). 

 

how can i proceed with? 

 

appreciate your valuable answers. thanks in advance.

 

Ammar

 

Categories:
  • Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    In the OnSuccess property of the Master form you can use the LastSubmit property of the form to get the ID of the item that was just created or updated. Here is an example of using Patch to create a new item in Detail and setting the MasterID SharePoint field to the value of the item Id that was just submitted to Master.

     

    Patch( [DetailDataSource], Defaults( [DetailDataSource] ), { MasterID: EditForm.LastSubmit.ID } )

    If you want to set additional fields or update an existing item in Detail list then you will need to make sub changes to the Patch formula.

  • Verified answer
    v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @ammarfassy,

     

    You can also create an app using the stationary request master list and create records using the app. Then create a flow.

    Trigger:

    SharePoint - When a new item is created (Master list)

    Actions:

    SharePoint - Create item (Detail list)

    Capture.PNG

     

    Regards,

    Mona

     

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 432 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard