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 ?

SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,594 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jerryzy 10,566 Reputation points
    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