Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - General
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:
  • omerhameed98 Profile Picture
    4 on at
    Re: Power Virtual Agent - Attachments

    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

     

     

  • Maruthi5507 Profile Picture
    4 on at
    Re: Power Virtual Agent - Attachments

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

  • RishiBhutani Profile Picture
    Microsoft Employee on at
    Re: Power Virtual Agent - Attachments

    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.

  • Jcook Profile Picture
    7,770 Most Valuable Professional on at
    Re: Power Virtual Agent - Attachments

    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

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Copilot Studio - General

#1
Pablo Roldan Profile Picture

Pablo Roldan 25

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 23

#3
stampcoin Profile Picture

stampcoin 10

Overall leaderboard