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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Add Sharepoint .pdf fi...
Power Automate
Answered

Add Sharepoint .pdf file as attachment to Outlook Email - Powerapp Trigger

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Based on a button in our power app, we want to send an email notification. This email needs to have a .pdf attachment. Currently, this attachment lives in our SharePoint Documents Library. Sometimes I can get the flow to work once or twice and then it quits. I tried changing it based on some other forum discussions, but now it's not working at all.

 

This is the full error message I am getting on this set up:

Unable to process template language expressions in action 'Get_file_metadata_using_path' inputs at line '1' and column '2069': 'The template language expression 'json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$connections']['shared_sharepointonline']['connectionId']' cannot be evaluated because property 'shared_sharepointonline' doesn't exist, available properties are 'shared_office365'. Please see https://aka.ms/logicexpressions for usage details.'.

Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Adding attachment.PNGAttachment Capture.PNGFailure.PNG

  • Verified answer
    v-bacao-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Basically, this problem is caused by the addition of actions contained in other connectors in the existing Flow, so similar problems may occur.

    Please try to export this Flow as a .zip file, and then re-import it as a new Flow. After configuring the connection, Flow can be used normally.

    In addition, if you are configuring Flow in the PowerApps portal, you may not be able to export the Flow. Please go to MS Flow portal to implement this operation.

    Hope it helps.

     

    Best Regards,

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 664

#2
Haque Profile Picture

Haque 460

#3
Valantis Profile Picture

Valantis 357

Last 30 days Overall leaderboard