Content-Type error when using Attachment API over MS Power Automate

Stefan Reichelt
Tera Guru
Tera Guru

Hi Community,

I'm currently playing with a dummy flow in Microsoft Power Automate (previously MS Flow), talking to my PID over REST HTTP calls. All of the steps are working fine, except the one that shall attach a mail attachment to a mail in ServiceNow.

find_real_file.png

Remark: I already tried many different things in Body, even without JSON but the Attachment Item instead. What ever I do, I get the same error back:

{
  "error": {
    "message": "Invalid file type: image/png",
    "detail": null
  },
  "status": "failure"
}
 
I'm pretty sure that PNG is not a forbidden format in my instance. But my colleagues were able to do it successfully in our company's DEV instance. What could be so special about my step and/or my PID? The only difference I know is that my PID is on Paris already.
 
PS: Has anyone already done such a thing, even including embedded images?
 
Best regards
3 REPLIES 3

thomaskennedy
Tera Guru

Did you ever get a solution here?

Stefan Reichelt
Tera Guru
Tera Guru

No, sadly not...

Nagasai
ServiceNow Employee
ServiceNow Employee

Hi Valen,

 

It might be helpful -

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0718011

 

 

Thanks,

Naga Sai