cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Greg68
Helper III
Helper III

Copy value of SharePoint column to a lookup column

Hello everyone,

 

Is there a way to copy the value from a SharePoint List Title column to another lookup column?

 

I have large list and it's not really a good idea to do this manually!

 

Thanks you!

1 ACCEPTED SOLUTION

Accepted Solutions
v-liwei-msft
Community Support
Community Support

Hi @Greg68 ,

 

Could you please tell me:

Do you mean the second list has the same Title column as the first list? 

Is the lookup column of your first list set based on the title column of the second list? 

I have made a test for your reference:

vliweimsft_0-1658302183344.jpegvliweimsft_1-1658302196312.jpeg

 

1. You can use two get items to get the items of the two lists respectively. 

2. Add two apply to each to traverse the value of the two lists respectively. 

 

vliweimsft_0-1658302336061.png

 

 

3. Add a condition under apply to each to determine whether the titles of the two lists are the same. 

4. If the same, use update item, fill in the ID of the second list in the lookup id.

vliweimsft_1-1658302351691.png

 

Best Regards,

Levi

 

View solution in original post

5 REPLIES 5
v-liwei-msft
Community Support
Community Support

Hi @Greg68 ,

 

Could you please tell me:

If you want to copy the data from the Title column in the list to the LookUp column in the same list?
 

The LookUp column is essentially searched through the ID column (the ID column is a column that comes with SharePoint). 

You can fill in the SharePoint ID in the look up id in the Update Item action.

 

I have made a test for your reference:

1. I have a SharePoint list called 719. 

vliweimsft_0-1658223667638.png

 

 

 

2.List contains a LookUp column created from the Title column.

 

vliweimsft_1-1658223667639.png

 

 



3. Use Get Items to get the data in the list (in order to get the ID column).

4. Use Update Item and fill in the ID in the lookup id.

vliweimsft_2-1658223667975.png

 

 

 

5.

vliweimsft_3-1658223667666.png

 

Best Regards,

Levi

Thanks you @v-liwei-msft for helping, in fact this works if it is the same list! however the lookup column is getting data from another list, that have the same Title but different IDs. so when it gets the lookup value from the second list, it get data based on the ID not based on the title.

so in my case the relation between those 2 lists is the title column values.

 

I dunno how this can be done based on the title and not the ID 🙂 

v-liwei-msft
Community Support
Community Support

Hi @Greg68 ,

 

Could you please tell me:

Do you mean the second list has the same Title column as the first list? 

Is the lookup column of your first list set based on the title column of the second list? 

I have made a test for your reference:

vliweimsft_0-1658302183344.jpegvliweimsft_1-1658302196312.jpeg

 

1. You can use two get items to get the items of the two lists respectively. 

2. Add two apply to each to traverse the value of the two lists respectively. 

 

vliweimsft_0-1658302336061.png

 

 

3. Add a condition under apply to each to determine whether the titles of the two lists are the same. 

4. If the same, use update item, fill in the ID of the second list in the lookup id.

vliweimsft_1-1658302351691.png

 

Best Regards,

Levi

 

Hi @v-liwei-msft yes, in both lists, I use the title to add the employees ID, so one list for their name and other information and the second list to add their tasks, so both lists have the same ID in the Title fields. The ID I assigned to them, not the SharePoint list ID.

 

I will try your last suggestion and let you know, I hope it will work on a large list.

Thanks a lot

Thank you @v-liwei-msft It works on temp lists! I will need to try this on the large lists to see how much time it may take to process all items.

 

Thanks a lot

Helpful resources

Announcements

Check out the new Power Platform Communities Front Door Experience!

We are excited to share the ‘Power Platform Communities Front Door’ experience with you!   Front Door brings together content from all the Power Platform communities into a single place for our community members, customers and low-code, no-code enthusiasts to learn, share and engage with peers, advocates, community program managers and our product team members. There are a host of features and new capabilities now available on Power Platform Communities Front Door to make content more discoverable for all power product community users which includes ForumsUser GroupsEventsCommunity highlightsCommunity by numbersLinks to all communities Users can see top discussions from across all the Power Platform communities and easily navigate to the latest or trending posts for further interaction. Additionally, they can filter to individual products as well.   Users can filter and browse the user group events from all power platform products with feature parity to existing community user group experience and added filtering capabilities.     Users can now explore user groups on the Power Platform Front Door landing page with capability to view all products in Power Platform.      Explore Power Platform Communities Front Door today. Visit Power Platform Community Front door to easily navigate to the different product communities, view a roll up of user groups, events and forums.

Microsoft Power Platform Conference | Registration Open | Oct. 3-5 2023

We are so excited to see you for the Microsoft Power Platform Conference in Las Vegas October 3-5 2023! But first, let's take a look back at some fun moments and the best community in tech from MPPC 2022 in Orlando, Florida.   Featuring guest speakers such as Charles Lamanna, Heather Cook, Julie Strauss, Nirav Shah, Ryan Cunningham, Sangya Singh, Stephen Siciliano, Hugo Bernier and many more.   Register today: https://www.powerplatformconf.com/   

Announcing | Super Users - 2023 Season 1

Super Users – 2023 Season 1    We are excited to kick off the Power Users Super User Program for 2023 - Season 1.  The Power Platform Super Users have done an amazing job in keeping the Power Platform communities helpful, accurate and responsive. We would like to send these amazing folks a big THANK YOU for their efforts.      Super User Season 1 | Contributions July 1, 2022 – December 31, 2022  Super User Season 2 | Contributions January 1, 2023 – June 30, 2023    Curious what a Super User is? Super Users are especially active community members who are eager to help others with their community questions. There are 2 Super User seasons in a year, and we monitor the community for new potential Super Users at the end of each season. Super Users are recognized in the community with both a rank name and icon next to their username, and a seasonal badge on their profile.    Power Apps  Power Automate  Power Virtual Agents  Power Pages  Pstork1*  Pstork1*  Pstork1*  OliverRodrigues  BCBuizer  Expiscornovus*  Expiscornovus*  ragavanrajan  AhmedSalih  grantjenkins  renatoromao    Mira_Ghaly*  Mira_Ghaly*      Sundeep_Malik*  Sundeep_Malik*      SudeepGhatakNZ*  SudeepGhatakNZ*      StretchFredrik*  StretchFredrik*      365-Assist*  365-Assist*      cha_cha  ekarim2020      timl  Hardesh15      iAm_ManCat  annajhaveri      SebS  Rhiassuring      LaurensM  abm      TheRobRush  Ankesh_49      WiZey  lbendlin      Nogueira1306  Kaif_Siddique      victorcp  RobElliott      dpoggemann  srduval      SBax  CFernandes      Roverandom  schwibach      Akser  CraigStewart      PowerRanger  MichaelAnnis      subsguts  David_MA      EricRegnier  edgonzales      zmansuri  GeorgiosG      ChrisPiasecki  ryule      AmDev  fchopo      phipps0218   tom_riha      theapurva        Akash17        BCLS776        rampprakash        Rusk        cchannon        a33ik        AaronKnox        Matren        Alex_10        Jeff_Thorpe        poweractivate        Ramole        DianaBirkelbach        DavidZoon        AJ_Z        PriyankaGeethik        BrianS        StalinPonnusamy        HamidBee        CNT        Anonymous_Hippo        Anchov        KeithAtherton        alaabitar        Tolu_Victor        KRider        sperry1625        IPC_ahaas        If an * is at the end of a user's name this means they are a Multi Super User, in more than one community. Please note this is not the final list, as we are pending a few acceptances.  Once they are received the list will be updated. 

Top Solution Authors
Users online (4,072)