SPFX get item based on view

g h 716 Reputation points

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

Accepted answer
  1. Baker Kong-MSFT 3,791 Reputation points

    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:



    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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful