cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
egas
Frequent Visitor

Create email and save as draft

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')}
    ]
}

 

 

 

 

padrafts.png

1 ACCEPTED SOLUTION

Accepted Solutions
SudeepGhatakNZ
Resident Rockstar
Resident Rockstar

SudeepGhatakNZ_0-1670198612961.png

 

If my suggestion helped you, please give it a Thumbs up and mark it as a Solution so that it can benefit others in the community.

View solution in original post

2 REPLIES 2
SudeepGhatakNZ
Resident Rockstar
Resident Rockstar

SudeepGhatakNZ_0-1670198612961.png

 

If my suggestion helped you, please give it a Thumbs up and mark it as a Solution so that it can benefit others in the community.
egas
Frequent Visitor

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’].

 

egas_1-1670223317467.png

 

 

 

 

 

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (3,512)