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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (3,134)