cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SlavaS1
Helper II
Helper II

Updete OneNote page via Graph API

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\""
      }
    }
  ]
}

 

 

 

 

0 REPLIES 0

Helpful resources

Announcements
Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (4,234)