I am using this url to get the list items "https://graph.microsoft.com/v1.0/sites/<site_id>/lists/<list_id>/items?expand=fields" . The response is being returned fine, I need to access the "webUrl" property of the returned list item so the user can go to that record in SharePoint list from my app. However the "webUrl" returned is not pointing to a web page and is just downloading a weird file with the extension .000
Example list item:
{
"@odata.etag": "\"<eTag>,1\"",
"createdDateTime": "<createdDate>",
"eTag": "\"<eTag>,1\"",
"id": "<id>",
"lastModifiedDateTime": "<last_modified>",
"webUrl": "https://mydomain.sharepoint.com/sites/<site_name>/Lists/<list_name>/<id>_.000",
"createdBy": {
"user": {
<user_info>
}
},
"lastModifiedBy": {
<user_info>
},
"parentReference": {
"siteId": "<site_id>"
},
"fields@odata.context": "https://graph.microsoft.com/v1.0/$metadata#sites('<site_id>')/lists('<list_id>')/items('id')/fields/$entity",
"fields": {
"@odata.etag": "\"<eTag>,1\"",
"id": "<id>",
"ContentType": "<content_type>",
"Title": "<title>",
"Modified": "<modified_date>",
"Created": "<created_date>",
"Attachments": false,
"Edit": "",
"LinkTitleNoMenu": "<link title menu>",
"LinkTitle": "<link title>",
"ItemChildCount": "0",
"id_no": <some_Id>,
}
}
The highlighted webUrl above just downloads a file with .000 extension. Please help me understand why this is happening and how to resolve it or is it the expected behavior. As I need the links to the list item. Because as per the doc the "webUrl is a string URL that displays the item in the browser. And is Read-only."