SPFX get item based on view

g h 716 Reputation points
2020-09-23T01:55:59.84+00:00

I'm using SPFX Solution want to get items from specific List View.

Can you provide a sample code please ?

Thanks for any help.

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,349 questions
No comments
{count} votes

Accepted answer
  1. Baker Kong-MSFT 3,761 Reputation points
    2020-09-23T09:26:51.643+00:00

    Hi @g h ,

    You can not directly get items from a view, the possible solution is to form a CAML query with the 'ViewQury' property of list view:

    Please take a reference of below demo:

    Test result:

    26767-1.jpg

    26768-2.jpg

    Best Regards,
    Baker Kong


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful