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 / Trying to Upload an Im...
Power Automate
Unanswered

Trying to Upload an Image from Forms to Onenote

(0) ShareShare
ReportReport
Posted on by 28

Hi all,

 

I Have a flow that takes answers from a Form and enters them onto a Onenote page. Everything is working smoothly but I cannot figure out how to get an image to upload. I have the image URL and inserting it into a browser pulls up the correct test image. I have created a Compose function to translate that URL into base64 but I have no idea how to insert that into the HTML.

 

Please help!

picture 1.pngpicture 2.pngpicture 3.png

Categories:
I have the same question (0)
  • Verified answer
    v-yetonggu-msft Profile Picture
    on at

    Hi @miaroze ,

    Do you want to embed the image uploaded in MS Form into html?

    If so,I did a test for your reference.

    In my scenario:

    My OneNote:

    vyetonggumsft_4-1710905368843.png

    My Flow:

    vyetonggumsft_0-1710904849433.pngvyetonggumsft_1-1710904872755.png

    {
     "type": "array",
     "items": {
     "type": "object",
     "properties": {
     "name": {
     "type": "string"
     },
     "link": {
     "type": "string"
     },
     "id": {
     "type": "string"
     },
     "type": {},
     "size": {
     "type": "integer"
     },
     "referenceId": {
     "type": "string"
     },
     "driveId": {
     "type": "string"
     },
     "status": {
     "type": "integer"
     },
     "uploadSessionUrl": {}
     },
     "required": [
     "name",
     "link",
     "id",
     "type",
     "size",
     "referenceId",
     "driveId",
     "status",
     "uploadSessionUrl"
     ]
     }
    }

    vyetonggumsft_6-1710905429842.png

    <img src='@{dataUri(outputs('Get_file_content')?['body'])}'/>

    vyetonggumsft_7-1710905454308.png

    Best Regards,

    Sunshine Gu

  • miaroze Profile Picture
    28 on at

    Hi! Thank you for responding. I added everything to my flow but the image still doesn't want to appear. There's a blank box where I think it should be? The only thing I changed was in the Append to String Variable action- I couldn't add the @ and parenthesis to the Expression. I wrote what I ended up with under the action.image 1.png

     

    image 2.png

     

    image 3.png

     

    image 4.png

     

    Screenshot 2024-03-20 111724.png

     

  • v-yetonggu-msft Profile Picture
    on at

    Hi @miaroze ï¼Œ

    There are a few mistakes in your flow that you need to fix and refer to my flow carefully.

    vyetonggumsft_0-1710980417515.png

    vyetonggumsft_1-1710980542379.png

    <img src='@{dataUri(outputs('Get_file_content')?['body'])}'/>

    Please take a closer look at my flow and avoid some logical errors as much as possible.

    Best Regards,

    Sunshine Gu

  • miaroze Profile Picture
    28 on at

    Ahhhhh it was the putting Append to string variable into the apply to each, when it was outside I kept getting an error for the formula. Thank you so much for trouble shooting!

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard