Segment information not found

Copper Contributor

I have upgraded the GraphAPI version from v5.80.0 to 6.5.1. Using the guide, I am trying to fetch the call segments within sessions List sessions - Microsoft Graph v1.0 | Microsoft Learn like below: 

graphClient ->
graphClient
.communications()
.callRecords()
.byCallRecordId(id)
.sessions()
.withUrl(odataLink)
.get(requestConfiguration -> {
requestConfiguration.queryParameters.expand = new String[]{"segments"};

requestConfiguration.headers.add("Prefer", "odata.maxpagesize=" + maxPageSize)
}))


But the GraphAPI threw the error "Received error Parsing OData Select and Expand failed: Term 'segments)' is not valid in a $select or $expand expression. while calling Graph API resource"
0 Replies