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 / Display image from Sha...
Copilot Studio
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

  • Verified answer
    CU22081450-0 Profile Picture
    Most Valuable Professional on at

    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)

  • k1ng Profile Picture
    50 on at

    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

  • CU22081450-0 Profile Picture
    Most Valuable Professional on at

    @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.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    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?

  • CaptainKirk_K Profile Picture
    4 on at

    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

     

     

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Mohsin Ali Profile Picture

Mohsin Ali 308

#2
Valantis Profile Picture

Valantis 154 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 133 Super User 2026 Season 2

Last 30 days Overall leaderboard