0

I am trying to copy a list from one web app to another web application .All the list items are copying fine except for Contact Details (which is column of type person).This column is showing empty . Can anyone suggest me how to make this work

Thanks

1

You may have to use EnsureUser and pass AccountID for target list item.

For example,

[Microsoft.SharePoint.SPUser]$spuser = $spWeb.EnsureUser("domain\username")
$spListItem[$newSMTName] = $spuser
$spListItem.Update()

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.