Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

One asset containing more assets

(0) ShareShare
ReportReport
Posted on by

Hello,

 

A bit of a complicated one here!

I have an asset management Microsoft List with an integrated Power App (auto-created using the integrate option on Lists).

We're planning to put an asset tag on each room that we have in the building. I want to be able to scan the asset of the room and the app show the assets that are in that room. I've got the app to use a barcode scanner to search for an asset tag but I don't know how to get it to present the assets in the room.

 

I haven't seen anything on Lists or Apps that says you can have a record in a record, but it would work perfectly for us if I had a room and inside the room was a number of assets.

 

Thanks.

Categories:
  • SH-23070720-0 Profile Picture
    on at
    Re: One asset containing more assets

    Fair enough,

    I will mark your last post as a solution as it does technically work for what is required.

    Thanks again.

  • Adrian_Celis Profile Picture
    1,652 Super User 2025 Season 1 on at
    Re: One asset containing more assets

    @HeronS98 

    We've been going on a lot of topics for this one thread and perhaps this will not end soon. Apologies I cannot help further. Maybe you can ask a question for a more specific problem that you have in PowerApps in another post.

  • SH-23070720-0 Profile Picture
    on at
    Re: One asset containing more assets

    In my case, assets have letters in them, so I would have to make the type 'single line of text' for both.

    So how would I go about creating a collection for them?

    I'd have the asset tag for all the individual assets, and the room ids that i want to search.

  • Adrian_Celis Profile Picture
    1,652 Super User 2025 Season 1 on at
    Re: One asset containing more assets

    Yes that would be possible. I would suggest that the columns in both lists that you are searching for are the same column types (e.g. Number). You would filter both lists, then put them in a collection.

  • SH-23070720-0 Profile Picture
    on at
    Re: One asset containing more assets

    Yes, that shows room ids perfectly, thank you for that.

    So I see the individual assets in the layout and can search room ids and it find different rooms.

    Is there a way it can search for both individual assets and the room ids or is it only one?

    Thanks for all your help so far!

  • Verified answer
    Adrian_Celis Profile Picture
    1,652 Super User 2025 Season 1 on at
    Re: One asset containing more assets

    Okay that's where we take it a step further. Since you now made the items appear in the gallery, you can make the RoomID value dynamic. 

    If you have a textbox named Textbox1, you can have the Items property of your gallery as:

    Filter(YourAssetsTableNameHere, RoomID = Value(Textbox1.Text))

     

    So now you can type in any value in the textbox, like 1 or 2.

     

  • SH-23070720-0 Profile Picture
    on at
    Re: One asset containing more assets

    So I put the formula into the Items property, and it does bring up all rooms associated with RoomID 1.

    But then I can't search for assets that aren't in RoomID1. So I can't search for items in RoomID 2 for example because the search box is only looking for RoomID 1.

     

  • Adrian_Celis Profile Picture
    1,652 Super User 2025 Season 1 on at
    Re: One asset containing more assets

    @HeronS98 

    Thank you for giving me info on your tables.

    Ok so far you are on the right track. First you need to know how galleries and filtering works. Then you are one step closer to solving your problem.

    Since you need to show items from your Assets table, then use this formula in the Items property of a gallery:

     

    Filter(YourAssetsTableNameHere, RoomID = 1)

     

    Make sure your gallery has a layout so you can see the items.

     

    Adrian_Celis_0-1636424297777.png

    Let me know if something appears in your gallery.

     

  • SH-23070720-0 Profile Picture
    on at
    Re: One asset containing more assets

    Essentially what I want is to be able to scan a barcode that relates to a room name and then the app show what assets are in that room.

    I hope it makes sense, I'll make up a scenario using random assets and barcodes.

    So I have a room, lets call it AA01. The barcode for it is AABBCC01.

    I have three assets, TT22,TT23,TT24 that are all in the same room, AA01.

    When I scan the room barcode AABBCC01, I receive TT22,TT23, and TT24 as they are all in that room.

     

    Hope this makes sense, sorry for putting you through this! I'm not so clued up on PowerApps as you can tell.

    Thanks for all your help.

  • SH-23070720-0 Profile Picture
    on at
    Re: One asset containing more assets

    So I have one Microsoft List. It is named Ref and currently has one record in it as below:

    HeronS98_0-1636409495878.png

    I have a different Microsoft List that contains my assets. I have added RoomID as a number field to this as per below:

    HeronS98_1-1636409711442.png

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard