Hello everyone!
I am following the guide from the link below to create an email as a draft.
Create a draft Email in Outlook - DamoBird365
Everything works until I have to add an attachment where I get the following error:
were unable to deserialize
Does anyone have any idea what I am doing wrong?
{
"subject": "Test subject",
"importance": "Normal",
"body": {
"contentType": "HTML",
"content": "@{outputs('Create_Email_Body')}"
},
"toRecipients": [
{
"emailAddress": {
"address": "@{items('Apply_to_each')?['EmailAddress']}"
}
}
],
"attachments": [
@{outputs('Instructions')}
]
}
Solved! Go to Solution.
Hi @SudeepGhatakNZ !!
Thank you for feedback! You were basically right. However, I did not read the instructions carefully on the guide missed a key step which your logic pointed me to.
Where you advised that the data content was missing, it wasn't as simple as using the 'FileContent' from the previous step.
I had to create an expression using outputs(‘Get_file_content’)?[‘body’]?[‘$content’].