I tried the code below, but it didn't work
?$orderby=id asc
{
"d": {
"results": [
{
"__metadata": {
"id": "https://xxxx.sharepoint.com/teams/xxxx/_api/web/lists('ab4d3cea-2663-46e3-866e-62556065c737')/GetItemById(1)/Comments(2)",
"uri": "https://xxx.sharepoint.com/teams/xxxx/_api/web/lists('ab4d3cea-2663-46e3-866e-62556065c737')/GetItemById(1)/Comments(2)",
"type": "Microsoft.SharePoint.Comments.comment"
},
"likedBy": {
"__deferred": {
"uri": "https://xxx.sharepoint.com/teams/xxx/_api/web/lists('ab4d3cea-2663-46e3-866e-62556065c737')/GetItemById(1)/Comments(2)/likedBy"
}
},
"replies": {
"__deferred": {
"uri": "https://xxxx.sharepoint.com/teams/xxxx/_api/web/lists('ab4d3cea-2663-46e3-866e-62556065c737')/GetItemById(1)/Comments(2)/replies"
}
},
"author": {
"__metadata": {
"type": "SP.Sharing.Principal"
},
"directoryObjectId": null,
"email": "xxxxx@xxxxx.com.br",
"expiration": null,
"id": 9,
"isActive": true,
"isExternal": false,
"jobTitle": null,
"loginName": "i:0#.f|membership|xxxx.xxx@xxxxx.com.br",
"name": "xxxxxxxxxxxxxx",
"principalType": 1,
"userId": null,
"userPrincipalName": null
},
"createdDate": "2024-10-19T00:10:54.63Z",
"id": "2",
"isLikedByUser": false,
"isReply": false,
"itemId": 1,
"likeCount": 0,
"listId": "ab4d3cea-2663-46e3-866e-62556065c737",
"mentions": {
"__metadata": {
"type": "Collection(Microsoft.SharePoint.Comments.Client.Identity)"
},
"results": []
},
"modifiedDate": null,
"parentId": "0",
"replyCount": 0,
"text": "fghgfhfg"
},
{
"__metadata": {
"id": "https://xxxxxx.sharepoint.com/teams/xxxx/_api/web/lists('ab4d3cea-2663-46e3-866e-62556065c737')/GetItemById(1)/Comments(1)",
"uri": "https://xxxx.sharepoint.com/teams/xxx/_api/web/lists('ab4d3cea-2663-46e3-866e-62556065c737')/GetItemById(1)/Comments(1)",
"type": "Microsoft.SharePoint.Comments.comment"
},
"likedBy": {
"__deferred": {
"uri": "https://xxxx.sharepoint.com/teams/xxxx/_api/web/lists('ab4d3cea-2663-46e3-866e-62556065c737')/GetItemById(1)/Comments(1)/likedBy"
}
},
"replies": {
"__deferred": {
"uri": "https://xxxx.sharepoint.com/teams/xxxxx/_api/web/lists('ab4d3cea-2663-46e3-866e-62556065c737')/GetItemById(1)/Comments(1)/replies"
}
},
"author": {
"__metadata": {
"type": "SP.Sharing.Principal"
},
"directoryObjectId": null,
"email": "xxxx.xxx@xxxx.com.br",
"expiration": null,
"id": 9,
"isActive": true,
"isExternal": false,
"jobTitle": null,
"loginName": "i:0#.f|membership|xxxx.xxx@xxxxx.com.br",
"name": "xxxxxxxx",
"principalType": 1,
"userId": null,
"userPrincipalName": null
},
"createdDate": "2024-10-18T22:42:21.183Z",
"id": "1",
"isLikedByUser": false,
"isReply": false,
"itemId": 1,
"likeCount": 0,
"listId": "ab4d3cea-2663-46e3-866e-62556065c737",
"mentions": {
"__metadata": {
"type": "Collection(Microsoft.SharePoint.Comments.Client.Identity)"
},
"results": []
},
"modifiedDate": null,
"parentId": "0",
"replyCount": 0,
"text": "TESTE 1"
}
]
}
}
WarrenBelz
146,668
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,004
Most Valuable Professional