Skip to main content

Notifications

Community site session details

Community site session details

Session Id : JANmuZR2jqlRVzUwMjSEVO
Power Automate - Building Flows
Answered

Trying to Upload an Image from Forms to Onenote

Like (0) ShareShare
ReportReport
Posted on 19 Mar 2024 20:09:25 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

  • miaroze Profile Picture
    28 on 21 Mar 2024 at 12:20:18
    Re: Trying to Upload an Image from Forms to Onenote

    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!

  • v-yetonggu-msft Profile Picture
    on 21 Mar 2024 at 00:23:43
    Re: Trying to Upload an Image from Forms to Onenote

    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 20 Mar 2024 at 15:21:49
    Re: Trying to Upload an Image from Forms to Onenote

    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

     

  • Verified answer
    v-yetonggu-msft Profile Picture
    on 20 Mar 2024 at 03:31:24
    Re: Trying to Upload an Image from Forms to Onenote

    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

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
stampcoin Profile Picture

stampcoin 55

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 39 Super User 2025 Season 1

#3
VictorIvanidze Profile Picture

VictorIvanidze 26

Overall leaderboard
Loading started