web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

Custom API File Type

(1) ShareShare
ReportReport
Posted on by 45
 I'm developing an app connection with Microsoft Flow.

My app is a document management app (created by me) and the goal is foir example to upload a file from my app to One Drive, using flows.

 

I have an action that consists when an email is flagged in outlook its attachement is added to azure storage (linked with my app).FlowFlow

The parameters are : Raw Body inputs (FileStream with the attachement content) , Doc_Name (FIle name) , Cont_ID (Reference to the folder from azure where the file's gonna be saved).

 

THis flow retrives the error 400 (has you can see in the images).

 

I think it's because the Content type in my app is not the correct one. (I'm using FileStream) ErrorError

Categories:
  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    Hi @Fvamaro,

     

    OneDrive has the corresponding Create File Action.

    If here you would like to save Email Attachments into OneDrive folder, then take a look at the template:

    Save new Email Attachment  to any folder in OneDrive for Business

     

    Besides, you may take a try with the template above, and then change the content type accordingly.

    By the way, the Name Dynamic content from the attachment should contain the file type.

     

    Regards,

    Michael

  • Fvamaro Profile Picture
    45 on at

    Hi @v-micsh-msft,

     

    The point is: I'm integrating flow with an app I've developed.

    One of the actions I want the connector to be able to do is get an attachement from a flagged email and add it to my personal storage using Microsoft FLow ( as you can see int the first image).

    For this I have to build a method in my asp.NET project to receive the file from the email.

     

    The issue is that I do not know for sure what kind of variable is the content atribute (where the content of the attachement is).

     

    In Other words: (Simplifying the problem)

    What I want to know is how Flow connectores exchange files between each other.

    When an attachement is saved form Outlook to OneDrive how the information is sent?
    How the Content attribute (dynamic value from attachement) is sent and received from Outlook to OneDrive.

     

    Regards,

    Filipe Amaro

  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    Hi @Fvamaro,

     

    The attachments in Microsoft Outlook is stored as an array, you may take a look at the following thread as a reference:

    Post File via HTTP

     

    Regards,

    Michael

  • Fvamaro Profile Picture
    45 on at

    Thank you @v-micsh-msft,

    I think it will be helpful, if it is I will accept it as a solution.

     

    Regards,

    Filipe

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 445

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 300

Last 30 days Overall leaderboard