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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Power Virtual Agent - ...
Copilot Studio
Unanswered

Power Virtual Agent - Attachments

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi 

 

Looking incase anyone has done attachment scenario with Power Virtual Agent.

 

checking attachment scenario with PVA . I already have the code to send the attachment to blob -> How do I return and catch the blob location at PVA Chatbot for further processing? I have read at article that upload event is triggered at PVA

 

What I want:

- Pass blob url to a flow for external partner

- Get the blob URL at PVA for further processing.

 

What I have already / Assumption:

- Uploaded the attachment to BLOB

- Assuming ChatBot user is an external user.

Categories:
I have the same question (0)
  • Jcook Profile Picture
    7,781 Most Valuable Professional on at

    Hello @RishiBhutani 

     

    Looks like an idea was submitted for this here:

    Attach file to Power Virtual Agents - Power Platform Community (microsoft.com)

     

    In the comments of this idea a staff member @pawan-msft has provided a great solution along with a GitHub example:

    Attach file to Power Virtual Agents - Power Platform Community (microsoft.com) - Reply

  • RishiBhutani Profile Picture
    Microsoft Employee on at

    Hello @Jcook 

    Based on the response sending the blob URL as message activity is not an option as an outside user will not have the blob url when the document is uploaded. 

     

    At the Git example - it mentions upload event at PVA - Question can it be captured at PVA Bot somehow so that I can use the BLOB URL?

     

    https://github.com/microsoft/PowerVirtualAgentsSamples/tree/master/BuildYourOwnCanvasSamples/2.location-and-file-uploading

     

    Note I have already uploaded the file now I need is its blob url at PVA (may be as a variable) for further processing. The user doesn't have a blob url.

  • Maruthi5507 Profile Picture
    4 on at

    @RishiBhutani Can you please share me code on how to upload attachment to azure blob storage using PVA Chatbot?

  • omerhameed98 Profile Picture
    4 on at

    Hello, 
    As per the documentation of microsoft copilot PVA, I used the resource given by them for customization of a canvas.
    https://github.com/microsoft/CopilotStudioSamples/tree/master/BuildYourOwnCanvasSamples/2.location-and-file-uploading


    Result from the current implementation:
    I am sending an image from the bot, it is uploading to azure bob storage and after that event is success, it displays the image on the bot. Also, I am able to get the azure blob public URL on the blob. This is allowing me to use that URL in any other custom flow as well.

    Issue:
    I need  to upload a pdf from the bot. Pdf is uploading azure as per the requirement . After that successful event, it tries to display document as an image, due to which it is showing me an empty result. It should display pdfs as an attachment. 


    I have attached my result. If anyone can guide me on displaying pdf as an attachment 

    omerhameed98_0-1711451549040.png

     

    omerhameed98_1-1711451582143.png

     

     

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

Forum hierarchy changes are complete!

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

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 251 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

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

#3
S-Venkadesh Profile Picture

S-Venkadesh 93 Moderator

Last 30 days Overall leaderboard