Web Request Control to get Maximum ID from a list

  • 18 June 2020
  • 3 replies
  • 92 views

Badge +1

Hello Folks,

 

Has anyone used a web request to get item from a list? I have had very little success with the Web Request control and I need to make another run at it.

I am confused with xpath for value & xpath for display -

Path for value : //

XPath for display : //

I want to use rest api url to get item ID.


3 replies

Badge +4
Try this

http
://SP/_api/web/lists/getbytitle('YourListName')/Items?$top=1&$orderby=ID desc

 

Badge +1
that is ok..url i can manage...
but i m concerned about
Path for value : //
XPath for display : //
Badge +4

The URL gives Json Format and it comes all the item property values .


May I know what is Path or Xpath.

Reply