Unable To Open Files Attached Via Attachments API

Answered


Posted Nov 30, 2021

Hi There,

Currently we're using Microsoft Power Automate to create a new ticket when a webform is submitted in Microsoft Dynamics 365 Customer Voice.

As part of this webform we require that PDFs can be added to the created ticket.

When a HTTP request is posted from Power Automate using the the Attachments API to obtain a file token, the file content_type returns set to "application/json", even though I have added "content_type": "pdf" to the body of the HTTP request.

As a result the attachment on the created ticket won't open.

Thanks!


0

1

1 comment

Hey Ed,

I think your content_type should be formatted like "application/pdf". I'm thinking the system is having a hard time reading your request so it's defaulting to application/json.

Let me know if this doesn't resolve your issue and I'd be happy to take a closer look

0


Sign in to leave a comment.

Didn't find what you're looking for?

New post