Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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?

  • MattB1984 Profile Picture
    2 on at
    Re: Powerapps V2 trigger MS Flow, (INPUT "File" type issue)

    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.

     

  • DGS Profile Picture
    114 on at
    Re: Powerapps V2 trigger MS Flow, (INPUT "File" type issue)

    How do you do this?

  • Verified answer
    Kepcla Profile Picture
    on at
    Re: Powerapps V2 trigger MS Flow, (INPUT "File" type issue)

    Long road, but it works!

  • Verified answer
    v-xiaochen-msft Profile Picture
    on at
    Re: Powerapps V2 trigger MS Flow, (INPUT "File" type issue)

    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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard