Forum Discussion

NewBee117's avatar
NewBee117
Copper Contributor
Jul 26, 2023
Solved

Copy multi-select people column from one list to another

How do I fill the section highlighted in red? It works when I pick a name from the list, but I am filling it with more than one name. Is it possible?   The input array looks like this: [ {"Claims...
  • Lalit Mohan's avatar
    Jul 30, 2023

    Hi NewBee117 

    To copy multiple people from one list to another, you can follow these steps:

    1. Ensure that the destination column in the second list allows multiple selections.
    2. Modify the input array to include multiple entries, each representing a different person you want to copy.

    The modified input array would look like this:

     

    [
        {"Claims": "i:0#.f|membership|email address removed for privacy reasons"},
        {"Claims": "i:0#.f|membership|email address removed for privacy reasons"},
        {"Claims": "i:0#.f|membership|email address removed for privacy reasons"},
        ...
    ]

     

    Replace email address removed for privacy reasons, email address removed for privacy reasons, etc. with the email addresses or user identifiers of the individuals you want to copy to the second list.

    By doing this, when you copy the data from the first list to the second list using the modified input array, the "Claims" column in the second list will be populated with multiple names as per the entries in the input array. Each entry in the "Claims" column will represent one person from the original list.

    If the destination column in the second list doesn't allow multiple selections, you may need to adjust the settings or change the column type to allow multiple selections before proceeding with the copy operation.

Resources