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

Community site session details

Session Id : SzyyChU/S8Wcf0RTYIjVB4
Power Apps - Building Power Apps
Unanswered

Missing column. Your formula is missing a column 'contentBytes' with a type of 'blob'

Like (0) ShareShare
ReportReport
Posted on 15 Jun 2024 13:31:22 by 12

Hi,

 

I am trying to send emails from Power app and for attachment control I get this error

Missing column. Your formula is missing a column 'contentBytes' with a type of 'blob'

 

I have tried renamecolumns method already

I have the same question (0)
  • rzuber Profile Picture
    545 Moderator on 15 Jun 2024 at 14:44:28
    Re: Missing column. Your formula is missing a column 'contentBytes' with a type of 'blob'

    @Vishnu27 - You're going to need to give us more information than that.

     

    Which email function are you using? How are you defining the attachment?

     

    Here is a simplified example of a formula I use to send a PDF of an HTML Text control on a screen the user is looking at:

     

     

    Office365Outlook.SendEmailV2(
     Concat(colSharingList, Mail, ";"),
     "[PDF] Document",
     "See attached PDF.<br /><br /><i>This message was sent by 'The Tool'.</i>",
     {
     Attachments: Table(
     {
     Name: "Document.pdf",
     ContentBytes: PDF(
     HtmlText5,
     {
     DPI: 72,
     Margin: "5mm",
     Size: PaperSize.Letter,
     Orientation: PaperOrientation.Landscape
     }
     )
     }
     )
     }
    )

     

     

     

     

    The colSharingList is a collection of the email addresses I chose on-screen to receive the email. The PDF() function creates the blob object for the Attachments table you pass to the email function.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 714 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 419 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 243

Last 30 days Overall leaderboard
Loading complete