web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Copilot Studio - General
Suggested answer

Copilot Studio now returning SharePoint download links instead of online preview links in citations

(0) ShareShare
ReportReport
Posted on by
I’m using Copilot Studio and recently ran into an issue related to citation formatting when retrieving documents from a SharePoint site.
 
Issue:
The agent has started returning direct download links (physical file paths) in citations instead of the online preview/viewer links.
 
Example:
Direct link returned by the agent (not expected): https://#####.sharepoint.com/teams/.../Agenda%20-%20September%202025.docx
Expected online preview link: https://#####.sharepoint.com/:w:/r/teams/.../_layouts/15/Doc.aspx?action=default&sourcedoc={FILE_GUID}
 
This behavior seems to have started after a recent Copilot Studio update. Previously, the Knowledge Search feature consistently returned the correct online preview links.
 
What I’ve tried:
I attempted prompt engineering to force the agent to convert the citation to an online-viewer link, but the output remains the same.
 
Question:
Has anyone else encountered this issue? Is this a known update bug, or is there a recommended workaround to force Copilot Studio to return the online preview links again?
 
Much appreciated!
 
 
Categories:
I have the same question (0)
  • Suggested answer
    sannavajjala87 Profile Picture
    123 on at
    Copilot Studio now returning SharePoint download links instead of online preview links in citations

    Citation URLs aren’t guaranteed to use WOPI preview format; they depend on metadata returned by the knowledge source. Recent changes have caused inconsistencies.

    There's a possible workaround.

    AI Response Generated trigger: Intercept the final answer and rewrite citation URLs to the preview format:

    https://<tenant>.sharepoint.com/_layouts/15/Doc.aspx?sourcedoc=<GUID>&file=<FileName>&action=default

    Use Graph API or file properties to resolve the GUID.

    Use PNP “Citations” topic sample: Lets you control link display and enforce viewer URLs.

    Swap citations pattern: Available in CopilotStudioSamples; replaces default links during response generation.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Copilot Studio

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 312 Super User 2025 Season 2

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 278 Super User 2025 Season 2

#3
Sam_Fawzi Profile Picture

Sam_Fawzi 76 Super User 2025 Season 2

Last 30 days Overall leaderboard