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