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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Powerapps V2 trigger M...
Power Apps
Unanswered

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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard