Share via

I am facing issue with graph api

Gokulakrishnan M 0 Reputation points
2023-05-05T09:05:34.59+00:00

I want to filter PSTN call records between two time periods and get the call records as response.
endpoint : https://graph.microsoft.com/v1.0/communications/callRecords?$filter=startDateTime ge 2007-01-01T00:00:00Z and endDateTime le 2022-04-30T23:59:59Z

I have attached the access token with this request but the response is

{
    "error": {
        "code": "NotFound",
        "message": "",
        "innerError": {
            "request-id": "bc402e91-7e5b-41d7-9c49-f6f1a702d976",
            "date": "2023-05-05T08:55:55",
            "client-request-id": "bc402e91-7e5b-41d7-9c49-f6f1a702d976"
        }
    }
}

I dont know why I am getting this as response and what this response means. I have referred to the API documentation but no idea.

Microsoft Security | Microsoft Graph
0 comments No comments

2 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    1 deleted comment

    Comments have been turned off. Learn more

  2. Anonymous
    2023-05-05T14:52:19.3033333+00:00

    Hi Gokulakrishnan M,

    Thanks for reaching out. Per doucmentation 'A call record is created after a call or meeting ends and will remain available for 30 days. Requests for call records older than 30 days will receive a 404 Not Found response.' From the api call you provided you are filtering for records older than 30 days, hence receiving the 404 Not Found response. This is expected behavior.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    Thanks.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.