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?

