Merge to list record into 1 list based on user id to show total count

Mohammad Qasim 576 Reputation points
2020-08-26T11:58:42.037+00:00

Greetings

Using sharepoint 2016 on Prem

having 2 list like below
20585-2list.png

i want to validate record between 2 lists which is List A and List B.

if same record exist on list B based on "User ID" so it should merge the record into 1 record to sum up.

Note: if User "A" not exist on List B so it should transfer data into List C
But if User "A" record exist in list "B" so it should merge the record into 1 with sum up on count (Total Docs uploaded).

my output would be like this it should be in desc order based on "Total Docs uploaded'

Thanks

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,608 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Amos Wu-MSFT 4,051 Reputation points
    2020-08-27T06:11:26.073+00:00

    My CSOM code for your reference:code.txt

    If you want the view displayed in descending order:
    20759-image.png
    Or
    20746-image.png

    0 comments No comments

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.