Skip to content

New command: teams callrecord get. Closes #6738#6851

Merged
milanholemans merged 8 commits intopnp:mainfrom
MartinM85:feature/6738-teams-callrecord-get
Feb 23, 2026
Merged

New command: teams callrecord get. Closes #6738#6851
milanholemans merged 8 commits intopnp:mainfrom
MartinM85:feature/6738-teams-callrecord-get

Conversation

@MartinM85
Copy link
Copy Markdown
Contributor

Closes #6738

@milanholemans
Copy link
Copy Markdown
Contributor

Thanks Martin, we'll try to review it soon.

@milanholemans
Copy link
Copy Markdown
Contributor

@MartinM85, could you align this PR with the latest version of Zod? This will improve the review process.

@milanholemans milanholemans marked this pull request as draft January 15, 2026 16:13
@MartinM85 MartinM85 force-pushed the feature/6738-teams-callrecord-get branch from 19876fe to 6d1b8be Compare January 15, 2026 19:47
@MartinM85 MartinM85 marked this pull request as ready for review January 15, 2026 19:53
@MartinM85
Copy link
Copy Markdown
Contributor Author

@MartinM85, could you align this PR with the latest version of Zod? This will improve the review process.

Rebased with the main.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds a new command teams callrecord get to retrieve detailed information about a specific Microsoft Teams call record using the Microsoft Graph API. The implementation follows the established codebase patterns for application-only commands and includes comprehensive test coverage and documentation.

Changes:

  • New command implementation for retrieving Teams call records by ID with expanded session and participant data
  • Test suite with validation tests, success scenarios, and error handling
  • Documentation page with usage examples and important remarks about the 30-day retention limit

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/m365/teams/commands/callrecord/callrecord-get.ts Implements the new command that retrieves call records with two API calls to expand both sessions/segments and participants_v2
src/m365/teams/commands/callrecord/callrecord-get.spec.ts Comprehensive test suite covering validation, successful retrieval, and error handling scenarios
src/m365/teams/commands.ts Adds the new CALLRECORD_GET command constant to the commands registry
docs/src/config/sidebars.ts Adds the new command to the documentation sidebar navigation
docs/docs/cmd/teams/callrecord/callrecord-get.mdx Complete documentation page with usage, options, examples, and response formats
npm-shrinkwrap.json Contains unrelated changes adding "peer": true flags to several packages
Files not reviewed (1)
  • npm-shrinkwrap.json: Language not supported

Comment thread src/m365/teams/commands/callrecord/callrecord-get.ts Outdated
Comment thread src/m365/teams/commands/callrecord/callrecord-get.spec.ts Outdated
Comment thread npm-shrinkwrap.json Outdated
Copy link
Copy Markdown
Contributor

@milanholemans milanholemans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work Martin! During review I had a few remarks we should take a look at first.

Comment thread npm-shrinkwrap.json
Comment thread src/m365/teams/commands/callrecord/callrecord-get.ts Outdated
Comment thread src/m365/teams/commands/callrecord/callrecord-get.ts Outdated
Comment thread src/m365/teams/commands/callrecord/callrecord-get.spec.ts Outdated
Comment thread src/m365/teams/commands/callrecord/callrecord-get.spec.ts Outdated
Comment thread src/m365/teams/commands/callrecord/callrecord-get.ts Outdated
Comment thread docs/docs/cmd/teams/callrecord/callrecord-get.mdx Outdated
Comment thread docs/docs/cmd/teams/callrecord/callrecord-get.mdx Outdated
Comment thread docs/docs/cmd/teams/callrecord/callrecord-get.mdx
Comment thread docs/docs/cmd/teams/callrecord/callrecord-get.mdx Outdated
@milanholemans milanholemans marked this pull request as draft February 14, 2026 23:40
@MartinM85 MartinM85 force-pushed the feature/6738-teams-callrecord-get branch from 6d1b8be to e0124f8 Compare February 15, 2026 10:43
@MartinM85 MartinM85 marked this pull request as ready for review February 15, 2026 10:52
Copy link
Copy Markdown
Contributor

@milanholemans milanholemans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!


it('handles random API error', async () => {
const errorMessage = 'Could not find the requested call record. Records about calls or online meetings that started more than 30 days ago are not available.';
sinon.stub(request, 'get').rejects(new Error(errorMessage));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The structure of this error does not match the structure that the Graph API throws. Usually, the error message is wrapped into an error object like:

{
  "error": {
    "message": "Error occurred."
  }
}

@milanholemans milanholemans merged commit 8d21a96 into pnp:main Feb 23, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New command: teams callrecord get

3 participants