I am having a problem where, when I try to attach a file to a draft I have created using the Outlook node, it keeps failing. I have tried all the possible variations I could find, and this seems to be the correct procedure. I have also tried adding another item or transferring the data directly as base64, but nothing works.
Does anyone know about the “were unable to deserialize” error and can tell me what I am doing wrong or suggest a workaround?
Many thanks in advance.
Hi, no i haven´t found any solution to this problem. But i found out a workaroud, where you directly adress the Microsoft Graph API via the essassery endpoint on a http node:
There you can sennd this JSON Body:
{
“@odata.type”: “microsoft.graph.fileAttachment”,
“name”: “name.pdf”,
“contentType”: “application/pdf”,
“contentBytes”: “{{ $json.data.replace(/\s+/g, ‘’) }}”
}
And you will need to connect an Acccount for the API like for the Mail Account.