Skip to main content

Notifications

Power Automate - Using Connectors
Unanswered

Power Automate JSON encryption

(0) ShareShare
ReportReport
Posted on by 16

I'm trying to send a PowerApps collection via email in an encrypted fashion.

So, my idea was to pass the collection as a JSON to a Flow putting the received JSON into a Compose action and then using the Azure connector called "Encrypt data with key", in order to encrypt the JSON (in the Compose action) using a key I have created in an Azure Vault.

Problem is that the "Raw data" parameter of this connector will accept only simple text and not JSON.

The error says:

"Operation failed because some of the inputs are not valid."

So, is there a way to "Flatten" a JSON to become simple text? 

Any other ideas?

 

02.png

 

01.png

 

 

  • MartSil Profile Picture
    MartSil 16 on at
    Re: Power Automate JSON encryption

    I ended up using DAP (Desktop Power Automate). 
    It has an Encrypt and a Decrypt actions.

    MartSil_0-1697959020395.png

    I trigger this DAP flow from an Online Flow action:

    MartSil_1-1697959263534.png

     

  • mohammadsor Profile Picture
    mohammadsor 6 on at
    Re: Power Automate JSON encryption

    I believe there is a limitation for the length of input text!

    I am trying to use the Vault, either, but it works for short strings but throws the following error for the longer ones!
    "Operation failed because some of the inputs are not valid"

    Any suggestion about an encryption tool in power automate flow?!

     

  • MartSil Profile Picture
    MartSil 16 on at
    Re: Power Automate JSON encryption

    Sorry but this doesn't work. 😔

    I still get the same annoying error message. 

  • Sundeep_Malik Profile Picture
    Sundeep_Malik 6,480 on at
    Re: Power Automate JSON encryption

    Hey @MartSil 

    You can use parse JSON to do this.

    First take parse JSON action. 

    Pass get ships doc output in it. 

    Then copy the output you are getting the get ships doc and add it to the generate from sample.

     

    After this use select function.

    Or 

    If you want each value individually, you can just directly use the fields you are getting from parse JSON.

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,495

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,822

Leaderboard

Featured topics