Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OneDriveAndSharePoint capability not working #13545

Open
arunpandi1 opened this issue Mar 26, 2025 · 3 comments
Open

OneDriveAndSharePoint capability not working #13545

arunpandi1 opened this issue Mar 26, 2025 · 3 comments
Assignees
Labels
investigating needs attention This issue needs the attention of a contributor. TA:Compute Team Area: Compute

Comments

@arunpandi1
Copy link

Describe the bug
We recently created a declarative agent using the Copilot Studio toolkit and added the "OneDriveAndSharePoint" capability to enable integration with OneDrive and SharePoint data. However, after successfully provisioning the agent, it is not functioning as expected

To Reproduce
Steps to reproduce the behavior:

  1. Open VS Code and create a declarative agent using the Teams Toolkit.
  2. Select "Declarative Agent" and choose "No Action" as the setup option.
  3. Choose a folder path for scaffolding the project.
  4. Add the following JSON snippet to the capabilities section in the declarativeAgent.json file:

{ "name": "OneDriveAndSharePoint", "items_by_url": [ { "url": "https://xxxx.sharepoint.com/sites/xxx/DemoLibrary/" } ] }

Expected behavior
The agent should successfully fetch and return the content from the specified SharePoint file or document library.

Screenshots

Image

Teams Toolkit version (please complete the following information):

  • OS: windows
  • Version : 5.14.0

Additional context
Add any other context about the problem here.

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs attention This issue needs the attention of a contributor. label Mar 26, 2025
Copy link

👋 Hi @arunpandi1,

Thank you for reporting this issue! We want to let you know that:

⏱️ Our team will personally review your issue
🎯 You can expect a response within 2 business days

✨ This is an AI-generated initial response
🤖 AI-Generated Preliminary Analysis:

It looks like you're facing an issue with the "OneDriveAndSharePoint" capability for a declarative agent in the Teams Toolkit. Several common issues could be causing this, so here are some troubleshooting steps and recommendations:

Troubleshooting Steps:

  1. Verify Permissions:
    Ensure that the necessary permissions are granted for accessing OneDrive and SharePoint data. The agent should have the correct permissions, such as Sites.Read.All, Files.Read.All, etc., configured in the Azure AD app registration of your application.

  2. Check URLs:
    Confirm that the provided SharePoint URL is correct and accessible. The URL should lead directly to the document library or resource you intend to access.

  3. Configuration Validation:
    Double-check the declarativeAgent.json configuration to ensure it's formatted correctly. Here is an example snippet for reference:

    {
      "capabilities": [
        {
          "name": "OneDriveAndSharePoint",
          "items_by_url": [
            {
              "url": "https://yourtenantname.sharepoint.com/sites/yoursitename/DemoLibrary/"
            }
          ]
        }
      ]
    }
  4. Agent Manifest:
    Ensure that the manifest and capabilities section in declarativeAgent.json has been saved and applied correctly.

  5. Provisioning Verification:
    Ensure that provisioning has completed successfully. There should be no errors in the provisioning logs, and the necessary permissions should be granted.

Additional Suggestions:

  • Update Teams Toolkit: Make sure you have the latest version of the Teams Toolkit installed.
  • Enable Logging: Enable detailed logging in the Teams Toolkit and monitor the output for any meaningful error messages.
  • Check Deployment: If applicable, test the agent in both the developer and production environments to see if the issue is specific to one environment.

Example Log Configuration:

To apply additional logging in VS Code, you can edit the settings.json:

{
  "teamsToolkit.enableTelemetry": true,
  "teamsToolkit.logLevel": "debug"
}

Providing Feedback:

Collect all relevant logs and steps taken and provide them detailed in an issue on the relevant GitHub repository for further assistance.

Getting More Help:

If the problem persists, consider reaching out in the GitHub repository’s issues section provided for Teams Toolkit or seek additional support from Microsoft.

Link for GitHub repository to report issues:
Teams Toolkit GitHub Issues

By following the steps above, you should be able to diagnose more precisely what's causing the "OneDriveAndSharePoint" capability to malfunction in your declarative agent.


Note: This is an automated first response generated by AI. A human team member will review your issue and provide a more detailed response soon. We appreciate your patience!

@Nivedipa-MSFT
Copy link

Thank you for bringing this issue to our attention. We will look into it and get back to you shortly.

@sayali-MSFT
Copy link

We are currently working on reproducing the scenario, but we are encountering an error. We will keep you updated as soon as we have any progress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigating needs attention This issue needs the attention of a contributor. TA:Compute Team Area: Compute
Projects
None yet
Development

No branches or pull requests

5 participants