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.

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

Answer accepted by question author
  1. Baker Kong-MSFT 3,801 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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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