Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - Building Copilot Studio Chatbo...
Answered

Display image from SharePoint on my bot

(0) ShareShare
ReportReport
Posted on by 50

I am having issues with the flow, "SharePoint:  Get file contact using path"... I guess don't know how to port back to PVA.  The flow goes through however it's an URL to get the picture not the picture?  The "image" var is not even loaded after the flow is completed...  What I am missing to display the image not download?  
1.PNG

2021-03-23_21-50-47.png

2.PNG3.PNG

Thanks!

-n

  • CaptainKirk_K Profile Picture
    4 on at
    Re: Display image from SharePoint on my bot

    I have been able to get this setup for PVA for teams.

    I have my images saved in the same Teams channel that the Virtual Bot is assigned to so it should then share to any authorised user in that teams group.

     

    Using Sharepoint step - Get file metadata using path. 

    Point the file path to the image you require.

    Use Sharepoint step - Get file properties.

    Point to the Sharepoint location and select in the dynamic content the ID - ItedId from the previous step.

     

    This will give you all the properties of the file.

    Including a Thumbnail. I have picked the Large Thumbnail which might not be the best of quality but for the chatbot works very well.

    You can then add that to the output going back to the PVA

     

    CaptainKirk_K_0-1686227927209.png

    CaptainKirk_K_1-1686227970479.png

     

     

  • Community Power Platform Member Profile Picture
    on at
    Re: Display image from SharePoint on my bot

    Is this also true for PVA for TEAMS. My bot is an internal resource only. It is published using PVA for TEAMS, in TEAMS, on the same channel as the associated SharePoint site where the images are also stored. It would seem to me that if it is published on the same SharePoint site that the images live on and the only people using it are approved for that SharePoint site as well that it shouldn't require authentication. No?

  • CU22081450-0 Profile Picture
    Most Valuable Professional on at
    Re: Display image from SharePoint on my bot

    @k1ng ,

     

    I never tried using SSO, but I don't think so that will work.

    Basically, the context of the bot conversation is public (if you publish in a custom website channel, everyone has access to use it) and SharePoint is a private system, that you need to use your credentials. 

    In theory, the context is different and the public cannot access private data.

  • k1ng Profile Picture
    50 on at
    Re: Display image from SharePoint on my bot

    Thanks for the insight @renatoromao.  Even if I make the user log into the chat through SSO or something?  That sounds weird that we can't use sharepoint 365, everyone has approval to access the site..

     

    Let me know!

    -n

  • Verified answer
    CU22081450-0 Profile Picture
    Most Valuable Professional on at
    Re: Display image from SharePoint on my bot

    Hi @k1ng  ,

     

    Unfortunately, you will not able to use the Sharepoint image on the chatbot.

    Why? Because Sharepoint has a security and you only can show public images on the chat for the user.

     

    Also, you need to use a markdown to show images on the chatbot, like [label](image_path) like this: Returning an image as a message - Power Platform Community (microsoft.com)

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Copilot Studio

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 132

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 81 Super User 2025 Season 1

#3
Pablo Roldan Profile Picture

Pablo Roldan 61

Featured topics