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 / Power Automate / Add image in to excel ...
Power Automate
Answered

Add image in to excel table from base64

(0) ShareShare
ReportReport
Posted on by

Hi,

Scenario

SPO list "Covid19_Compliance" has 3 column names 'PayLoad01', 'PayLoad02', 'PayLoad03'.

The data in these columns contains stringified JSON of user inputs which includes Texts, Camera captured images(base64).

SPO list is updated from PowerApps.

 

The Problem:

I am able to add all data from those columns into excel tables using Parse JSON & Excel Business connector.

But I am unaware how to add base64 encoded images into cell of excel table.

Also suggest me if I need to make changes at PowerApps level, like some alternatives instead of converting images to base64.

I need help 🙏

Categories:
I have the same question (0)
  • fchopo Profile Picture
    8,003 Moderator on at

    Hello @Anonymous 

    Could you try to convert your base64 image to binary and send it to excel by using dataUriToBinary() function?

    Have a look at this thread: https://powerusers.microsoft.com/t5/Building-Power-Apps/PowerApps-to-Flow-DataURIToBinary/td-p/156177

    Hope it helps!

    Ferran

  • Community Power Platform Member Profile Picture
    on at

    Hi @fchopo ,

    I have tried with the reference article you mentioned but it is giving following error-Excel Connector

     

    InvalidTemplate. Unable to process template language expressions in action 'Add_a_row_into_a_table' inputs at line '1' and column '2784': 'The template language function 'dataUriToBinary' expects one parameter: the data URI that is to be converted to binary. The function was invoked with '0' parameters. Please see https://aka.ms/logicexpressions#dataUriToBinary for usage details.'.

     

     

     The function is

     

    dataUriToBinary(items('Apply_to_each')['p5'])

     

  • Community Power Platform Member Profile Picture
    on at

    With the help of JSON parse connector, successfully converted image data URI to binary and updated in cell of table.

    But in cell it shows something like ?PNG

    So should I conclude that images can't be inserted to excel via flows.

  • Community Power Platform Member Profile Picture
    on at

    @ChristianAbata Hi, Can you help in this regard?

  • ChristianAbata Profile Picture
    8,951 Most Valuable Professional on at

    hi @Anonymous  shure. 

     

    So if you want something like this

    make.PNG

     

    I'm afraid my friend is not possible with PA, because and image is not part of a excel row, and image is like a frame inside excel, and until today this is not suppported by PA.

     

    Another scenario is this

    this.PNG

     

    inserting data in base64 into excel to use it in Power Apps and show images by reading the data in excel.

    Please let me know what scenario you are needing.

  • Community Power Platform Member Profile Picture
    on at

    @ChristianAbata 

    First of all I would like to congratulate you for being elevated as Super User 🎉🎉🎉

     

    When user fills and submits information from PowerApps, a new item will be created in SPO list.

    Then a flow will be triggered which will first parse JSON from PayLoad1, PayLoad2, PayLoad3 of SPO list item.

    Then excel's Add Rows connector will fill up three tables from above data in a existing excel templete.

    Excel sheet has 3 Tables(Table1,Table2,Table3).

     

    All 3 tables' column names are same- SrNo, Area, Point, Status, Remark, Image(Optional). (Total 6 columns & 3 tables)

    Then an email will be sent attaching that excel file to preset user email addresses.

    After that all rows from all 3 tables will be deleted using another excel connector.(To make it ready for future flow trigger as a template).

    Everything is running fine except image inserting issue in excel excel sheet table.

     

    The need is to insert image in excel's Image(Optional) column. This is required.

     

    (Off the topic question: How can I create my signature so that it added automatically when creating/replying to a post in this community forum? just like like outlook has that feature)

     

     

    Best Regards,

    Ankit Shah

    Surat-India

    Twitter: https://twitter.com/AnkitShah55

  • Verified answer
    ChristianAbata Profile Picture
    8,951 Most Valuable Professional on at

    @Anonymous  thanks my friend, it's a pleasure to help here.

     


    @Anonymous wrote:

    The need is to insert image in excel's Image(Optional) column. This is required.

     



    It's a shame but unfortunally we can't do this with PA this is not supported yet.

     

    And to answe your second question see it's in profile setting

    ignature.PNG

     

    I don't know if this is available for all users but is there jejeje

  • Community Power Platform Member Profile Picture
    on at

    @ChristianAbata 

    Thanks friend for clarifying that, now I have no doubts and I can move forward.

    What I am thinking to create a zip file containing that excel file and image files.

    Every image file name will be copied to ImageName column in excel table.

     

    Is this good practice? Or if you have idea?

    (PS: I am convincing my senior to generate reports in PDF instead of excel, I can do it by using HTML)

  • ChristianAbata Profile Picture
    8,951 Most Valuable Professional on at

    @Anonymous  excellent way my friend. You can create .rar file and then in excel add the url to that file.

     

    Pd: If you can convince your superior to use pdf is better, because as you said you can use HTML, I don't know if you saw this video but I give you anyway https://www.youtube.com/watch?v=2rfAQe1kK8M, is a Shane Video

  • Community Power Platform Member Profile Picture
    on at

    @ChristianAbata Yes I have watched that video, in fact I follow all videos and updates from Shane, (He is like a guru)

    Well, Thanks for all help friend 👋

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 > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard