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 / For a selected file tr...
Power Automate
Answered

For a selected file trigger - returned encrypted user email

(1) ShareShare
ReportReport
Posted on by 153

I've created a Flow in which it uses the For a selected file trigger on a SharePoint Document Library.

 

It then tries to extract the email address of the user who triggered the Flow, however, the email address returned is encrypted!

 

Can anyone else replicate this?

 

Extract the email address of the user who triggered the FlowExtract the email address of the user who triggered the Flow...email address returned is encrypted!...email address returned is encrypted!

 

 

Categories:
I have the same question (0)
  • hubertlam Profile Picture
    153 on at

    OK - just found out that this is Base64 encoding:

     

    image.png

     

     

    Anyone know how to decode from base64 back into plain text?

  • hubertlam Profile Picture
    153 on at

    What the heck?!?! It's now working again.

     

    Someone has been tweaking the encoding behind the scenes!

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

    Hi @hubertlam ,

     

    I'm afraid that the issue is caused by microsoft and now the issue has been fixed.

    Since your problem has been solved, please go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

     

    Best regards,

    Alice       

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • bpe383 Profile Picture
    2 on at

    It appears it's not fixed. Mine just started having this issue last week (10/11/2019)

     

    Any suggestions.

  • kitUser Profile Picture
    27 on at

    I am currently experiencing this issue since yesterday, 10/29/2020. Anyone else having this issue? 

    Update: I was able to create a new flow as a work around for this issue. It is unfortunate to have to transfer all my actions to the new flow to resolve this issue. 

    email_encrypted1.PNG

    email_encrypted.PNG

     

    email_encrypted_query.PNG

    email_encrypted_query2.PNG

  • calebmfoster Profile Picture
    4 on at

    I think I've found a work around as of 2/25/21:

    How to avoid corrupt email attachment in Power Automate (tomriha.com)
    I believe the formula snippet could be applied to other parts of the email as well

    format:
    base64ToBinary([Attachments Content])
    
    note: [Attachments Content] is a dynamic content
    
    when using in a flow, it could look like this:
    base64ToBinary(items('Apply_to_each')?['contentBytes'])
     

     

  • OliverR-82 Profile Picture
    623 on at

    Thank you, this gave me the tip to look at decoding functions. The example you linked to is relevant when you're dealing with attachments. However, to decode the email address of the user who triggered a flow, you can do it slightly different:

    decodeBase64(triggerOutputs()['headers']['x-ms-user-email-encoded'])

    Hope this helps someone else in the future.

  • gullettb Profile Picture
    21 on at
    @OliverR-82 - I was experiencing this issue today and was able to resolve it quickly with the info you posted. Thank you!

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 785

#2
Valantis Profile Picture

Valantis 669

#3
Haque Profile Picture

Haque 563

Last 30 days Overall leaderboard