Skip to main content
Community site session details

Community site session details

Session Id : Gqzp3w+b2pz2itpmoXK+dO
Power Automate - Using Connectors
Unanswered

Updete OneNote page via Graph API

Like (0) ShareShare
ReportReport
Posted on 2 Aug 2022 06:34:37 by 111

Hi, I need to insert a PDF printout on existed OneNote page.

 

The difficulty I struggled with is how to combine two names on a single header, it should be like this:

 

 "Content-Disposition": "form-data; name=\"Commands, Presentation\"",

 

The request accepts either name="Commands" or name = "Presentation" but not both.

 

SlavaS1_0-1659425453105.png

 

Body:

 

 

{
 "$content-type": "multipart/form-data",
 "$multipart": [
 {
 "body": 
[
{
 "target": "body",
 "action": "append",
 "position": "after",
 "content": "<img data-render-src=\"name:file-partWORD\" alt=\"WORD file as images\" />"
}
]
 ,
 "headers": {
 "Content-Disposition": "form-data; name=\"Commands\"",
 "Content-Type": "application/json"
 }
 },
 {
 "body": "@{body('Get_file_content')}",
 "headers": {
 "Content-Disposition": "form-data; name=\"file-partWORD\""
 }
 }
 ]
}

 

 

 

 

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Featured topics

Loading complete