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 / Collecting data from a...
Power Apps
Answered

Collecting data from a form for list A and dropping it in list B

(0) ShareShare
ReportReport
Posted on by 24

Hi all, 

Relatively new to PowerApps and have been stuck on this for a day or so now. 

I'm building an Asset Management App for our Service Desk, we can scan asset tags and assign them to the device the sticker is on (laptops and the like). This information is stored in a list called Assets. When we assign the asset to a staff member I want to update a field in Assets which is simple using the form. When we remove an Asset from a staff member I want to clear the 'AssignedTo' column in Assets and also create an entry in another list called Asset History so that we have information on users past assets or the history of an asset. 

Within the second list I have a LookUp on the SerialNumber which works, i just can't for the life of me get the information to populate from the submit button on the form, as the form relates to the Assets list. I'm under the impression i need to use Collect to collect the data on the OnSelect of the submit button but the sources i'm looking at don't seem to be working. 

Any ideas would be greatly appreciated. 

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,844 Super User 2026 Season 2 on at

    Hi @MattW1 ,

     

    May I ask what you use to populate the second list? Is it a form or via a Patch function?

     

    In case it is a Patch function, this article may be of use to you: https://www.matthewdevaney.com/power-apps-patch-function-examples-for-every-sharepoint-column-type/patch-a-sharepoint-lookup-column-in-power-apps/

  • MattW1 Profile Picture
    24 on at

    Hi @BCBuizer  

    It was by a form, I've found a workaround whereby creating a flow can do the work in the background when form 2 has been submitted. But i'm running into issues with that as well, 

    I have a SP List named Asset History and when an item is created or modified where ReturnedDate is not null I want to take the SerialNumber from that record and use it to locate a record in a SP List named Assets and change the AssignedTo and AssignedDate fields to NULL.


    I'm running into lots of issues with array/string and have tried multiple variables and methods. can't seem to get it working! The show goes on! 

  • Verified answer
    BCBuizer Profile Picture
    22,844 Super User 2026 Season 2 on at

    Hi @MattW1 ,

     

    What you can do for the scenario you described in your latest post, is to use a conditional Patch function in the OnSuccess property of the form that is linked to the 'Asset History' list:

     

    If(
     !IsBlank(Self.LastSubmit.ReturnedDate),
     Patch(
     'Assets',
     LookUp(
     'Assets',
     SerialNumber = Self.LastSubmit.SerialNumber.Value
     ),
     {
     AssignedTo: Blank(),
     AssignedDate: Blank()
     }
     )
    )

     For this to work, Formula Level Error Management should be enabled under Settings / Upcoming Features.

  • MattW1 Profile Picture
    24 on at

    @BCBuizer  Thank you so much for the knowledge sharing, I hadn't explored the Patch function before. This eliminates the need for flows on some of my other pages! Thanks again mate, really appreciate it. 


  • BCBuizer Profile Picture
    22,844 Super User 2026 Season 2 on at

    Hi @MattW1 ,

     

    Happy to read this helped you do things more efficiently. 😀

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard