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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Copilot Agent Download...
Copilot Studio
Suggested Answer

Copilot Agent Download File from Google Drive link

(2) ShareShare
ReportReport
Posted on by 225
Hello Experts,
 
I'm building an agent to download files from Google Drive links.
The flow below gets stuck at the HTTP action. Could you help me identify the issue?
I have the same question (0)
  • Suggested answer
    Vish WR Profile Picture
    3,748 on at
     
    The flow structure looks fine, so I'd focus on the HTTP step itself.
    A few common causes:
    - The Google Drive file isn't shared as "Anyone with the link", so the HTTP action receives a sign-in page instead of the file.
    - The generated DirectLink is incorrect or still points to a Google Drive preview page rather than a direct download URL.
    - For larger files, Google may return a virus scan confirmation page instead of the actual file content, which can cause the HTTP action to fail or appear stuck.
    I'd check the HTTP action's run history first and inspect the response. If the body contains HTML instead of file content, the issue is usually the link format or sharing permissions rather than the flow itself.
     
      Vishnu WR
     
    Please  Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like 
     
  • Suggested answer
    chiaraalina Profile Picture
    2,425 Super User 2026 Season 1 on at
     
    Your HTTP action is unauthenticated. It can only download Google Drive files that are public “Anyone with the link”. Share it again correctly and then copy the link.
     
     
    If you need to get private file then I recommend to use Google Drive connector or HTTP action where the Authorization header contains a valid Google OAuth bearer token. 
    Example: Authorization: Bearer eyJ...


    Let me know if it worked!
  • Suggested answer
    Valantis Profile Picture
    6,735 on at
     
    The HTTP action getting stuck on Google Drive links is almost always one of two things.
     
    1. Wrong URL format: the share link from Google Drive is a preview URL, not a direct download.
     
    Get the FILE_ID from your share link it's the long string between /d/ and /view. This is the most common cause.
     
    2. File not publicly shared: if the file isn't set to "Anyone with the link", the HTTP action gets a Google login page back instead of the file content. Check the sharing settings and make sure it's public.
     
    For large files (over 25MB): Google returns a virus scan warning page instead of the file. The HTTP action gets HTML back instead of binary content. At that size, switch to the Google Drive connector with proper OAuth authentication instead of HTTP.
     
    Check the run history of the HTTP action and look at the response body, if it contains HTML, it's one of the above issues.
     

     

    Best regards,

    Valantis

     

    ✅ If this helped solve your issue, please Accept as Solution so others can find it quickly.

    ❤️ If it didn’t fully solve it but was still useful, please click “Yes” on “Was this reply helpful?” or leave a Like :).

    🏷️ For follow-ups  @Valantis.

    📝 https://valantisond365.com/

    💼 LinkedIn

    ▶️ YouTube

  • ROSEBLACK Profile Picture
    225 on at
     

    I have already shared the file with the "Anyone with the link" permission.

    The file size is only 4 MB (<25MB)

    I can open the shared link in a private/incognito browser window and download the file without any issues.

    This flow is intended to support downloading files from any shared Google Drive link. The file type is not fixed and may be an image, PDF, Office document, ZIP file, or other supported file formats.

  • Suggested answer
    Valantis Profile Picture
    6,735 on at
     
    Since the file is public, under 25MB, and opens fine in incognito, the issue is almost certainly the URL format.
     
    The link you open in the browser (https://drive.google.com/file/d/FILE_ID/view) is a preview page, not a direct file download. Even though it works in the browser by redirecting you to the download, the HTTP action doesn't follow that redirect the same way.
     
    Convert your link to:
     
    Extract the FILE_ID from your share link and replace it. Test this URL directly in your incognito browser first it should immediately start downloading the file rather than opening a preview page.
     
    Then use that exact URL in your HTTP action. Check the run history and expand the HTTP action output to see the response status code and body that will confirm whether it's now returning binary content or still returning HTML.
     

    Best regards,

    Valantis

     

    ✅ If this helped solve your issue, please Accept as Solution so others can find it quickly.

    ❤️ If it didn’t fully solve it but was still useful, please click “Yes” on “Was this reply helpful?” or leave a Like :).

    🏷️ For follow-ups  @Valantis.

    📝 https://valantisond365.com/

    💼 LinkedIn

    ▶️ YouTube

     
  • Suggested answer
    Haque Profile Picture
    3,653 on at

    Hi @ROSEBLACK,

    Please make sure you are using the correct URL and correct HTTP Method. The Google Drive file download URL should be in the correct format, typically: https://www.googleapis.com/drive/v3/files/{fileId}?alt=media

    Use the HTTP GET method to download the file content.

    Also - I would recommend to check headers and query Parameters. Include the Authorization header: Authorization: Bearer {access_token}
    Note: Ensure no conflicting headers or missing required headers.

     
     
     

    I am sure some clues I tried to give. If these clues help to resolve the issue brought you by here, please don't forget to check the box Does this answer your question? At the same time, I am pretty sure you have liked the response!
  • ROSEBLACK Profile Picture
    225 on at
    Hello   
     
    If I use the Google connector, will there be a file download limit (<25MB)?
     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 277

#2
11manish Profile Picture

11manish 206

#3
sannavajjala87 Profile Picture

sannavajjala87 156 Super User 2026 Season 1

Last 30 days Overall leaderboard