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 :
Power Apps - Building Power Apps
Unanswered

Using Office365Outlook.SendEmail and PDF - and saving the file to Sharepoint document libary

(0) ShareShare
ReportReport
Posted on by
I have an app, where I am using the code below to send an email with a pdf version of a screen in the app.
 
Office365Outlook.SendEmail(
    "xxx@xxxx.dk"
    ; "Fakturering af sagnr. " & CurrentCase; "Vedhæftet findes faktureringsgrundlaget vedr. " & CurrentCase;
{       Bcc:("xxx@xxxx.dk");
        Attachments: Table(
             {
                 Name: "Sagnummer_" & CurrentCase & ".pdf";
                 ContentBytes: PDF(Screen_Faktureringsgrundlag; {ExpandContainers: true})
             }
         )
    } )
 
This part works fine. (the email is sent with the correct file attached)
 
Now I want to save the same pdf file to a Sharepoint Document Libary afterwards.
I have create a flow i Power Automate that works if I test it there, but I cannot get it to work when calling the flow in the app...
 
 
This is the OnSelect value in Power Apps:
 
 
What am I doing wrong?
 
Wkr Jørgen
 
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    151,932 Most Valuable Professional on at
    Using Office365Outlook.SendEmail and PDF - and saving the file to Sharepoint document libary
    This blog of mine should give you what you need
     
    Please ✅ Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like ♥
    Visit my blog
    Practical Power Apps    LinkedIn  

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

Coming soon: forum hierarchy changes

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

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 624 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 384 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 246

Last 30 days Overall leaderboard