Power Apps Exchange

Please login or click SIGN UP FOR FREE to create your PowerAppsUG account to join this user group.
 View Only
  • 1.  Send email from a simple PowerApps form

    Bronze Contributor
    Posted Jul 30, 2020 09:56 AM

    Hello,

    I have a very basic Power Apps form that looks like this,
    My Submit button's OnSelect value is set to this,

    Microsoft365Outlook.SendEmail("itsupport@test.com", Summary, Description)

    This is working well. However, I am having issues getting the attachments working.

    The attachments is called "DataCardValue6_2"



    This Power App isn't using SharePoint. It only has the Outlook connector added. I just was a very basic Ticketing system here that emails us everything that's filled in including any attachments added.
    Is this even possible? For an attachment to be sent by email if it isn't saving somewhere first like to a SharePoint list?
    I have tried googling what to do and I've been reading you use ,{Attachements:Table" or Add Columns, and specify other various parameters but I'm pretty confused by it all and I don't feel like I've found anything relevant enough for me to use.

    Could some please help me with the kind of Syntax I'd use? I'd essentially just want whatever has been added as an attachment to also be included in the email.


    ------------------------------
    Tony Malek
    IT Infrastructure Engineer
    ------------------------------


  • 2.  RE: Send email from a simple PowerApps form

    Bronze Contributor
    Posted Jul 30, 2020 12:36 PM
    I got it. OnSelect value set to:

    Microsoft365Outlook.SendEmail("email@here.com", Summary, Description,{Attachments: AddColumns( RenameColumns
    (AttachmentControl.Attachments, "Value", "ContentBytes"), "@odata.type", "") })

    ------------------------------
    Tony Malek
    IT Infrastructure Engineer
    ------------------------------



  • 3.  RE: Send email from a simple PowerApps form

    Top Contributor
    Posted Aug 03, 2020 07:04 AM
    Note that the SendEmail has a new version V2 which is the recommended one to use

    ------------------------------
    Brian Scott
    Chief Creative Officer
    Concord NC
    ------------------------------