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 / Copying from lookup fi...
Power Apps
Unanswered

Copying from lookup fields to other lookup fields

(0) ShareShare
ReportReport
Posted on by 82

I am supposed to auto-populate certain lookup fields in one form for one SharePoint list with results from lookup fields from the previously submitted form for a different SharePoint list.  I am not sure how to do that, since simply copying over the value is not considered a valid default value.  Also, I am not sure how to do it for single-entry fields, and how I would do it for multiple-entry fields.  I'm rather new to PowerApps, so please make sure to explain accordingly.

Categories:
  • KrishnaV Profile Picture
    5,023 on at

    Hi @HelloThereAll ,

     

    For setting the lookup field the logic is a little different.

    Patch(
     Tbl_SupplierDetails,
     Defaults(Tbl_SupplierDetails),
    {
     Title: LblContractNumber.Text,
     ContractNumberID: {
     '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
     Id: LookUp(
     Tbl_MC,
     ContractNumber = LblContractNumber.Text,
     ID
     ),
     Value: LblContractNumber.Text
     }
     }
    )

     

    Note: Please change all the variables and data sources as per your need.


    I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

    Regards,
    Krishna
    If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.

     

  • HelloThereAll Profile Picture
    82 on at

    I'm pretty new to PowerApps, and I'm wondering if you had something simpler.

  • KrishnaV Profile Picture
    5,023 on at

    Hi @HelloThereAll ,

     

    Sorry for the late reply, I was completely arrested with my work today!

    Coming to your request, unfortunately, that's the simplest one. Please let me know what is your requirement fully so that I can provide you the complete code block.


    I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

    Regards,
    Krishna
    If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.

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
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard