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 / Power Automate / Chat GPT makes a mista...
Power Automate
Answered

Chat GPT makes a mistake about the new Image Type Col field

(0) ShareShare
ReportReport
Posted on by 65

Hi I have been trying to figure out how to download the file in the image type col via Power Automate triggered by selecting an item in the Sharepoint List.

 

I reached out to Chat GPT, which I think gets it wrong (please see step 4).

 

If you know a way of doing this. I would greatly appreciate it.

 

CHAT GPT outuput

ME:
Can you be more specific with this step Next, add an action to get the image from the Image Column Type. Choose the "Get file content" action and provide the site URL, library name, and the Image Column Type field dynamic content
 
Chat GPT:

Sure, here are more detailed steps to add an action to get the image from the Image Column Type:

  1. In Power Automate, add a new action to your flow after the "Get item" action.
  2. Search for "Get file content" in the search bar and select the "Get file content" action.
  3. In the "Get file content" action, select the "Site Address" field and provide the URL of your SharePoint site.
  4. In the "Library Name" field, provide the name of the document library where your image is stored. Note that this library must be the one associated with the Image Column Type.
  5. In the "File Identifier" field, click the "Add dynamic content" button, select "Add dynamic content" and search for the Image Column Type field from the dynamic content.
  6. Make sure to select the correct dynamic content from the list, which will have the display name of the Image Column Type field in your SharePoint list.

Once you have completed these steps, the "Get file content" action should retrieve the image from the specified Image Column Type in your SharePoint list.

I hope this helps! Let me know if you have any further questions.

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,830 Most Valuable Professional on at

    Hi @rashantha,

     

    You could use two actions to retrieve the file content. The first is a Send an HTTP request to SharePoint action to retrieve the image column and it's properties (one of them is the serverrelativeurl to the uploaded file). In the second HTTP request you can retrieve the encoded file content.

     

    Below is an example of that approach.

    In this example the Image column is called ImageTypeColumn

     

    1. Uri first HTTP request

     

    _api/web/lists/getbytitle('ChatGPT example')/items(1)?$select=ImageTypeColumn

     

     

    2. Headers first HTTP request

     

    {
     "Accept": "application/json;odata=nometadata",
     "Content-Type": "application/json;odata=nometadata"
    }

     

     

    3. Uri second HTTP request

     

    _api/web/getfilebyserverrelativeurl('@{json(outputs('Send_an_HTTP_request_to_SharePoint')?['body']['ImageTypeColumn'])['serverRelativeUrl']}')/$value

     

     

    getfilecontent_imagetypecolumn.png

  • rashantha Profile Picture
    65 on at

    Thank you.

    I used the create file at the end to download the file and 

    json(outputs('Send_an_HTTP_request_to_SharePoint')?['body']['Image'])['fileName']
    to obtain the name of the file.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 552

#2
Valantis Profile Picture

Valantis 388

#3
11manish Profile Picture

11manish 375

Last 30 days Overall leaderboard