web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Import data into a lookup
Power Apps
Answered

Import data into a lookup

(0) ShareShare
ReportReport
Posted on by 45

Ok I am looking for some suggestions on how to convert my data for a lookup in CDS from an old Sharepoint Access App. I have a Job Sheet table/entity and I am trying to transfer all the data from my Access App to my PowerApp. I have a couple of lookup fields in the table/entity which I need to convert across. The data when I downoad it from the Access App to Excel has the actual values (the address field has the actual address and not the ID) but the data to go in needs to have the ID and not the actual address so it can look it up in the address table. For most of the lookup fields this is easy as there are only about 8 different possibilities and a quick find and replace will fix that. But for the address field there are over 2000 addresses. I have a seperate Excel spreadsheet which has all the addresses and ID's in. 

 

Can anyone suggest a simpler way to change all my addresses to the ID without having to do it on an individual basis.

 

Any help is really appreciated!

 

Thanks

Categories:
I have the same question (0)
  • Verified answer
    v-micsh-msft Profile Picture
    on at

    Could you please explain a bit for what the data source you used here?

    And the field that you would like to work with?

    If the Excel table contains all the Addresses and the related ID, then we could take use of Lookup function to find the proper ID with the Address Mapping.

    If the Address name is the same as the one you would like to replace with, then please rename the Address field in Excel to Address1 or somthing else,

    Then to replace the Address field, the formula should be:

    Forall(ExcelTable,
    
     Patch(CDSTable, Lookup(CDSTable, Address=Address1), {Address:ID})
     )

    Besides, if you are working with Lookup Field in CDS, then the formula might be a little different.

    Take a look at the example below:

    Patch Lookup field in CDS

     

    Regards,

    Michael

     

  • SupportForce Profile Picture
    45 on at

    I was working on the data in an Excel spreadsheet before I import the data into the Entities. I managed to sort it with an update query in MS Access.

     

    Thanks for the help.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard