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 / Opening Record of Same...
Power Apps
Answered

Opening Record of Same ID from Current List

(0) ShareShare
ReportReport
Posted on by 2

Hello All,

 

I know this like complex problem.

 

Below the scenario.

1. I have two SharePoint Lists

2. Both the lists have same columns names.

3. I have added both the lists in to same app.

4. Both the lists have two different galleries and forms.

 

Note

There will be same records created in both the lists with same ID. For example, ID 1 in ListA will have associated detailes in ListB in ID1.

 

Requirement

What i was looking for is: Instead of creating two different galleries, can i create only one gallery and add two buttons in it? 

If I click on 'List A' button then i should get navigated to form for 'List A' and if i click on 'List B' button then i should navigated to form of 'List B'. I think that this can be done using filter and lookup functions but not able to figure it how. Can anyone please help for this?

 

The gallery should look like the below and while clicking on the respective button, user should navigate to the respective screen.

 

Snap.JPG

 

 

 

 

 

 

 

Many Thanks,

Akshay

 

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @AkshayManke :

    I assume there are two lists:

    1.PNG2.PNG

    I assume your app have there screens:

    • HomeScreen
    • ListAEditScreen
    • ListBEditScreen

    I've made a test for your reference:

    At HomeScreen

    1)Add a Gallery(Gallery1) and set it's items property to:

    ListA

    2)Add a BackIcon into Gallery1 and set it's OnSelect property to:

    Navigate(ListAEditScreen)

    3)Add a NextIcon into Gallery1 and set it's OnSelect property to:

     

    Navigate(ListBEditScreen)

     

    At ListAEditScreen

    1)Add an Edit form and set 

    DataSource

    ListA

    Item

    Gallery1.Selected

    At ListBEditScreen

    1)Add an Edit form and set 

    DataSource

     

    ListB

     

    Item

     

    LookUp(ListB,ID=Gallery1.Selected.ID)

     

    60.gif

    Best Regards,

    Bof

  • AkshayManke Profile Picture
    2 on at

    Hi @v-bofeng-msft, I tried following the same steps suggested by you but in my App it is giving some error. Below the snap for your reference. Could you please help me understand where i am going wrong?

     

    snip.JPG

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    DevT is the list name and Gallery4 is the gallery. I have added the record in FSCVar hence the code written is (      LookUp(DevT,ID=FSCVar.Selected.ID)    )

     

    Could you please help further. Many Thanks.

    snip.JPG
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @AkshayManke :

    LookUp(DevT,ID=Gallery4.Selected.ID)   

    Best Regards,

    Bof

  • Verified answer
    AkshayManke Profile Picture
    2 on at

    Hi @v-bofeng-msft ,

     

    Your solution is working fine, the issue was with the connection (disconnected with the data source) which was broken which i reconnected. Now the links working exactly as expected. Many Thanks your your help.

     

    Thanks,

    Akshay

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 476

#2
WarrenBelz Profile Picture

WarrenBelz 365 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 339

Last 30 days Overall leaderboard