SOLVED

Copy text column to a person column (in the same list)

%3CLINGO-SUB%20id%3D%22lingo-sub-2389184%22%20slang%3D%22en-US%22%3ECopy%20text%20column%20to%20a%20person%20column%20(in%20the%20same%20list)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2389184%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20everyone%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20possible%20copy%20a%20column%20with%20%3CSTRONG%3Etext%3C%2FSTRONG%3E%20itens%20into%20a%20new%20one%20set%20with%20'%3CSTRONG%3Eperson%3C%2FSTRONG%3E'%20%3F%3C%2FP%3E%3CP%3EI%20can't%20use%20calculated%20column%20because%20there's%20no%20'person'%20mode%20on%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20got%20data%20from%20excel%20and%20it%20came%20with%20%3CSTRONG%3Etext%3C%2FSTRONG%3E%20(in%20name%20column)%2C%20but%20I%20need%20that%20the%20names%20are%20in%20'person'%20mode%2C%20because%20I'll%20use%20on%20PowerApps.%20I%20just%20need%20copy%20to%20a%20new%20%3CSTRONG%3Eperson%3C%2FSTRONG%3E%20column%2C%20because%20of%20historical%20and%20start%20get%20new%20data%20on%20PowerApps%20later.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20someone%20help%20me%3F%3C%2FP%3E%3CP%3EThank%20you%20in%20advance%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2389184%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ELists%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2390752%22%20slang%3D%22en-US%22%3ERe%3A%20Copy%20text%20column%20to%20a%20person%20column%20(in%20the%20same%20list)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2390752%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1059442%22%20target%3D%22_blank%22%3E%40t1agow%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EYou%20cannot%20set%2Fupdate%20person%20or%20group%20column%20using%20text%20column.%20In%20SharePoint%2C%20person%20or%20group%20column%20is%20stored%20by%20using%20user%20ID%20(ID%20of%20user%20in%20hidden%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EUser%20Information%20List%3C%2FSTRONG%3E%3CSPAN%3E).%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EMaybe%20you%20can%20try%20below%20workaround%3A%3C%2FSPAN%3E%3C%2FP%3E%3COL%3E%3CLI%3E%3CSPAN%3ECreate%20a%20Power%20automate%20flow%20on%20item%20creation%20or%20a%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpower-automate%2Frun-scheduled-tasks%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Escheduled%20flow%3C%2FA%3E.%20The%20flow%20will%20search%20for%20users%20using%26nbsp%3B%3CA%20title%3D%22flow%20action%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fconnectors%2Foffice365users%2F%23search-for-users-(v2)%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eflow%20action%3C%2FA%3E%26nbsp%3Bbased%20on%20the%20text%20column.%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3EThen%20you%20can%26nbsp%3B%3CA%20title%3D%22ensure%20user%20is%20already%20added%20to%20SharePoint%22%20href%3D%22https%3A%2F%2Fstackoverflow.com%2Fquestions%2F33259576%2Fsharepoint-2013-ensureuser-via-rest-api%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Eensure%20user%20is%20already%20added%20to%20SharePoint%3C%2FA%3E%26nbsp%3Busing%26nbsp%3B%3CA%20title%3D%22Send%20an%20HTTP%20request%20to%20SharePoint%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fconnectors%2Fsharepointonline%2F%23send-an-http-request-to-sharepoint%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ESend%20an%20HTTP%20request%20to%20SharePoint%3C%2FA%3E%26nbsp%3Baction.%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3EWith%20this%2C%20you%20will%20get%20the%20SharePoint%20user%20ID%20%26amp%3B%20using%20this%20ID%20you%20can%20set%20the%20person%20or%20group%20column%20in%20list%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FOL%3E%3CHR%20%2F%3E%3CP%3EPlease%20click%26nbsp%3B%3CSTRONG%3EMark%20as%20Best%20Response%3C%2FSTRONG%3E%26nbsp%3B%26amp%3B%20%3CSTRONG%3ELike%3C%2FSTRONG%3E%20if%20my%20post%20helped%20you%20to%20solve%20your%20issue.%20This%20will%20help%20others%20to%20find%20the%20correct%20solution%20easily.%20It%20also%20closes%20the%20item.%20If%20the%20post%20was%20useful%20in%20other%20ways%2C%20please%20consider%20giving%20it%20%3CSTRONG%3ELike%3C%2FSTRONG%3E.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hello everyone, 

 

Is possible copy a column with text itens into a new one set with 'person' ?

I can't use calculated column because there's no 'person' mode on it.

 

I got data from excel and it came with text (in name column), but I need that the names are in 'person' mode, because I'll use on PowerApps. I just need copy to a new person column, because of historical and start get new data on PowerApps later.

 

Can someone help me?

Thank you in advance

1 Reply
best response confirmed by t1agow (New Contributor)
Solution

@t1agow 

You cannot set/update person or group column using text column. In SharePoint, person or group column is stored by using user ID (ID of user in hidden User Information List).

 

Maybe you can try below workaround:

  1. Create a Power automate flow on item creation or a scheduled flow. The flow will search for users using flow action based on the text column.
  2. Then you can ensure user is already added to SharePoint using Send an HTTP request to SharePoint action.
  3. With this, you will get the SharePoint user ID & using this ID you can set the person or group column in list

Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.