cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
zebraffe_x
Frequent Visitor

Check-in existing asset

I'm using PowerApps Asset Checkout as my template to build an asset tracker. I want to track what assets are checked out by whom and I want to track when that asset is checked in. I have 2 SharePoint lists to do this - Inventory contains all the assets and UserCheckout contains all the assets that have been checked out.

 

My thinking is that I can pull the data from UserCheckout and populate a Check In page with the user's name and email and then use Today() as the CheckedIn date. Because users can have more than one asset checked out, I was thinking I could populate a dropdown with all the titles of all the assets and they choose which one to check in. Once this is done, it would add +1 to the CountValue column in Inventory for the Title chosen in the dropdown, making it available to check out again. For now, I'd like to keep all the records in UserCheckout for tracking purposes.

 

Is there a way that I can do this?

1 ACCEPTED SOLUTION

Accepted Solutions
v-micsh-msft
Community Support
Community Support

If you mean the Dorpdown for all the Assets that belongs to the same user, yes, that is possible.

The Items property for the Dropdown should be configured as:

Filter(UserCheckout, Email=User().Email, IsBlank(CheckedIn)).AssetName

The formula above assumes that the Asset that didn't Checked in would have a blank value for the CheckedIn field.

If not, then we need to modify the formula to meet the condition, so that the devices that has been checked in will not be listed within the Dropdown.

 

Let me know if this would work.

 

Regards,

Michael

 

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-micsh-msft
Community Support
Community Support

If you mean the Dorpdown for all the Assets that belongs to the same user, yes, that is possible.

The Items property for the Dropdown should be configured as:

Filter(UserCheckout, Email=User().Email, IsBlank(CheckedIn)).AssetName

The formula above assumes that the Asset that didn't Checked in would have a blank value for the CheckedIn field.

If not, then we need to modify the formula to meet the condition, so that the devices that has been checked in will not be listed within the Dropdown.

 

Let me know if this would work.

 

Regards,

Michael

 

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Thank you so much, that worked!

 

Now I just need to get the form to submit properly to the SP list and this piece of my app is completed.

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (2,498)