Do not able to access the files in Declarative Agent

Shudhakar Singh (Tata Consultancy Services Limi) 0 Reputation points Microsoft External Staff
2025-03-17T12:17:39.0566667+00:00

"When I create a declarative agent using Teams Toolkit and add a SharePoint file link using capabilities in the declarativeagent.json file, it initially accesses the file shared via the SharePoint when I preview the app after provisioning. However, on subsequent queries, it says, 'It seems that I don't have access to any documents at the moment.' I am facing this problem repeatedly. Seems like it removes the document due to some privacy issues.

Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,809 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Robin Sheng-MSFT 7,180 Reputation points Microsoft External Staff
    2025-03-18T05:44:49.57+00:00

    Hi @Shudhakar Singh (Tata Consultancy Services Limi)

    Teams tag is mainly focused on the general issue of Microsoft Teams troubleshooting. According to your description, your question is not in our support scope. Thanks for your understanding and patience.

    The following suggestion is for your reference:

    https://nanddeepnachanblogs.com/posts/2024-12-02-declarative-agents-sharepoint/

    https://github.com/OfficeDev/teams-toolkit/issues/12781

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


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

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments

Your answer

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