Skip to main content
improved formatting
Source Link
Amal Hashim
  • 28.4k
  • 5
  • 32
  • 61

I am currently using the REST interface to retrieve information about itemsItems in a Sharepoint listSharePoint List:

https://myserver/_api/Web/Lists(guid'<guid>')/Items(<id>)

The data returned includes the TitleTitle of each list itemList Item, but not the NameName. Since TitleTitle is not mandatory, this makes it difficult for me to use the data as is.

I can make another call to the REST interface to get the details of the File:

https://myserver/_api/Web/Lists(guid'<guid>')/Items(<id>)/File

and use the details there, but I was hoping to avoid two REST calls to do this. Is there another way I'm missing?

I am currently using the REST interface to retrieve information about items in a Sharepoint list:

https://myserver/_api/Web/Lists(guid'<guid>')/Items(<id>)

The data returned includes the Title of each list item, but not the Name. Since Title is not mandatory, this makes it difficult for me to use the data as is.

I can make another call to the REST interface to get the details of the File:

https://myserver/_api/Web/Lists(guid'<guid>')/Items(<id>)/File

and use the details there, but I was hoping to avoid two REST calls to do this. Is there another way I'm missing?

I am currently using the REST interface to retrieve information about Items in a SharePoint List:

https://myserver/_api/Web/Lists(guid'<guid>')/Items(<id>)

The data returned includes the Title of each List Item, but not the Name. Since Title is not mandatory, this makes it difficult for me to use the data as is.

I can make another call to the REST interface to get the details of the File:

https://myserver/_api/Web/Lists(guid'<guid>')/Items(<id>)/File

and use the details there, but I was hoping to avoid two REST calls to do this. Is there another way I'm missing?

Source Link
Derek
  • 13
  • 1
  • 3

Can I get the Name of a list item as well as its Title using REST?

I am currently using the REST interface to retrieve information about items in a Sharepoint list:

https://myserver/_api/Web/Lists(guid'<guid>')/Items(<id>)

The data returned includes the Title of each list item, but not the Name. Since Title is not mandatory, this makes it difficult for me to use the data as is.

I can make another call to the REST interface to get the details of the File:

https://myserver/_api/Web/Lists(guid'<guid>')/Items(<id>)/File

and use the details there, but I was hoping to avoid two REST calls to do this. Is there another way I'm missing?