SharePoint Server Object Model not set lookup field value

developer sp1 461 Reputation points
2020-08-13T02:19:57.077+00:00

I want to add a lookup field value using this script:

17313png

But there is no field value displayed after running the script.

Can you help to resolve the issue ?

Microsoft 365 and Office SharePoint Server Development
0 comments No comments
{count} votes

Accepted answer
  1. ZhengyuGuo 10,586 Reputation points Moderator
    2020-08-13T09:20:39.617+00:00

    Hi @developer sp1 ,

    Please take a reference about the demo to add lookup field value from here:

    Get / Set Lookup Field Values in SharePoint List using PowerShell

    And the attchment code is to get lookup field from source list using CAML Query and set to target list, you can refer it.
    17414-code.txt

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.