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 Platform Community / Forums / Power Apps / Powerapps V2 trigger M...
Power Apps
Answered

Powerapps V2 trigger MS Flow, (INPUT "File" type issue)

(0) ShareShare
ReportReport
Posted on by

Hi Team,

I ´ve created a MS flow (see images below).

But the code in my button inside Powerapps, is not working, I´ll try with two codes:

1)   PDF_OC_RTME_F.Run("Test"&".pdf",Html_Resumen_4.HtmlText,To_Emails.Text,Gallery9.Selected.Proveedor,Body_Emails.Text,{file:First(Orden_Compra).Attachments.AbsoluteUri})

2) PDF_OC_RTME_F.Run("Test"&".pdf",Html_Resumen_4.HtmlText,To_Emails.Text,Gallery9.Selected.Proveedor,Body_Emails.Text,{file:DataCardValue32.Attachments.Value)

It says: Incompatible type, the "file" column in the data source you´re updating expects a "Record" type and you´re using a "Table" type.

 

Kepcla_0-1653327287891.png

in this second image, if you set the variable to "Object" , the system display an error as well.

Kepcla_1-1653327360903.png

 

Kepcla_2-1653327386450.png

 

Any ideas?

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Kepcla ,

     

    Currently, this is a known issue.

    Please consider passing base64 or datauri instead of passing binary file directly.

    Then you could use base64tobinary or datauritobinary function in flow to convert it .

     

    Best Regards,

    Wearsky

  • Verified answer
    Kepcla Profile Picture
    on at

    Long road, but it works!

  • DGS Profile Picture
    122 on at

    How do you do this?

  • MattB1984 Profile Picture
    2 on at

    I have spent a good part of a day, trying to work out why every time I send a PDF of a container via the Power Automate V2 trigger it arrives in my sharepoint folder with no content.

     

    The answer is I just needed to create the PDF as a variable first:

     

    Set(varPDFex, PDF(Container1, {ExpandContainers: true, DPI: 128}));

     

    Then when i passed this to powerautomate using the flow function:

     

    InspectionReportFlow.Run(
    Concatenate(
    Text(Now(),"yyyymmdd.hhmmss"),
    "-",
    H_AssetID.Text,
    " - Inspection Report.pdf"
    ),
    H_AssetID.Text,
    H_InspectedBy.Text,
    H_Location.Text,
    H_Date_of_Inspection.Text,
    H_NextInspection.Text,
    {file: {name: "test.pdf", contentBytes: varPDFex}}
    );

     

    it finally worked!!!!

     

    I hope this helps everyone on this issue and works with other file types.

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 547

#2
WarrenBelz Profile Picture

WarrenBelz 444 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 322

Last 30 days Overall leaderboard