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 / navigation issue back ...
Power Apps
Answered

navigation issue back to relevant record detail form

(0) ShareShare
ReportReport
Posted on by 148

i have a detail screen/form with a button("Images") that navigates to another page that displays images from a sharepoint document library.

 

On the detail form i have created a variable "varID"  that equals the ID of the record displayed. 

 

The "Images" button simply navigates to the images screen and i filter a gallery based on the "varID" equaling the ItemID of the images in the document library. this all works ok.

 

But i cannot work out how to navigate back to the relevant detail form once you have viewed the images - Back() just takes you to the most recent record obviously. I probably need to navigate back to the detail screen using the varID = ID but cannot work out syntax.

 

thanks

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,477 Most Valuable Professional on at

    @cheezy ,

    The Item of your Form needs to be 

    LookUp(
     YourListName,
     ID=varID
    )

    and you simply navigate to the screen it is on.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • cheezy Profile Picture
    148 on at

    sorry still dont follow: when you say "item of your form"

     

    the Item of my detail form is "BrowseGallery1 selected" .

     

    On the Images screen , i can apply your formula above to the items related to the gallery on this screen to filter relevant images - i was using the formula Filter('Equipment  Attachments',ItemID = varID) but   LookUp('Equipment Attachments',varID =ItemID) achieves the same result. (the correct images display)

     

    It is just navigating back from the Images screen  to the relevant record details form that is the issue- somehow got to pass the varID back from images screen to equal the record ID of the details form?

  • Verified answer
    WarrenBelz Profile Picture
    154,477 Most Valuable Professional on at

    @cheezy , 

    Exactly what I have posted - if you want to go back to your form with the record matching varID, the Item of your form needs to be

    LookUp(
     YourListName,
     ID=varID
    )

    and on the OnSelect of your Gallery

    Set(
     varID,
     ThisItem.ID
    );
    Navigate(YourFormScreen)

    Also you need LookUp to produce one record only (Filter has the potential to produce a Table)

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard