How to take conditional actions on bas64 encoded trigger output in Power Automate Flow? - azure-eventhub

My trigger is an Event Hub stream from Azure IoT Central telemetry data.
I need to conditionally run an action based on the keys in the Content from the Event Hub trigger.
The Content output from Event Hub trigger is base64 encoded.
If I use Content in an Action like Post Message to Teams, it is decoded and looks fine.
The content is NOT decoded when I try to use it in a Conditional Action, or if I instantiate a variable first. There is no base64ToString() in the expressions for Power Automate. Power Automate doc's say they will automatically decode for you (and no they don't).
Anyone have a working base64 decode method with Power Automate or another workaround?

This just does not work in Power Automate.
It works fine in Logic Apps.
I just rebuilt everything in Logic Apps and it works great.

Related

Automate Teams notification with visuals with Power BI Alert is triggered

Thank you for the time of checking this out.
My goal is to have Power Automate send my customer a teams notification when a goal in a metric changes, but not only with the values, but also with a / the visual linked to the goal.
I have already managed to make an automation in Power Automate that does the following:
When Goal changes --> Get a Goal --> Post message to Chat or Channel.
This produces a text notification with the content I want in it, but to make it look a bit nicer, and more in context, I would like to add a viual.
Does anyone know how to accomplish this? Thanks!

is there any way to read multiple data alerts in power bi, using flow, or some other way?

is there a way to read data alerts in power bi using some sort of python code or something else? i want to be able to gather multiple data alerts for a specified account, then integrate them into an adaptive card.
flow doesn't seem to be able to do this for me, using flow i would need to create multiple flow apps to read one at a time and then somehow write the data somewhere that i can read later. this creates a availability problem for me, since i wouldn't want to be creating a new flow app every time i have a new powerbi alert.
Thanks for any suggestions.
You can read multiple data alerts in one logic app/power-automate if you use "When a HTTP request is received" as the trigger of the flow. You can specify the required data for multiple data alerts as the request body of the request.
For example, you set the "When a HTTP request is received" trigger as POST method. And then define the request body json schema for the data you want to input.
Then you can use the data which input in the request body in your python code to gather multiple data alerts.

want to write event from event hub to Data Lake store using C# without stream analytics

want to write event from event hub to Data Lake store using C# without stream analytics.
we are able to write in BLOB but how we can write in data lake.
Other than Azure Stream Analytics, there are few other options you could use. We have listed them at https://learn.microsoft.com/en-us/azure/data-lake-store/data-lake-store-data-scenarios - search for "Streamed data".
Do these meet your requirements?
Thanks,
Sachin Sheth
Program Manager,
Azure Data Lake.
You can try connecting the eventhub triggered function to blob storage as an output binding and then orchestrate a movement of data from blob to data lake.
This way we can save some efforts and process the datas in batch as well.
Considering other options such as Azure functions to Data Lake which involves complex operation such as appending the events in same file till a threshold and then flushing to data lake,it might not be ideal for real time environment.

PowerBI – How to set up a streaming data report?

I have a range of devices that push data to an Azure IoT hub. I then have a stream analytics job which ingests the data from IoThub and outputs it to PowerBI. In PowerBI then I have created a report from the dataset which is working. I now want that report to be ‘live’ using the streaming data from Stream Analytics, but can’t see how to make it so?
Looking at this guide, under the section ‘Create and publish a Power BI report to visualize the data’ point 4 says ‘Click Streaming Datasets’ which sounds like exactly what I need, but I don’t see that option anywhere?
Have I missed a step or set something up wrong, or is there another way to make my report ‘live’ without needing manual refresh and publishing?
Here's what I see when creating a report:
Thanks
Go to the report where you want to add the streaming data tile to.
Click on '+ Add tile' over on the top navigation
You should see an option for Real time - Custom streaming data on the resulting blade.

Output table in slack slash command

I want slash command to output data in a table format?
I know that I will have to setup a custom integration for this. I did that using GET Method.
I can setup my own web service on EC2 machine, but how should I make sure that data comes in table format.
May be something like this
My problem is how should I make available data present in tabular format?
It's unfortunately not possible to format Slack messages as a table in this way. You would need to resort to generating an image and referencing it in a message attachment. There is limited support for displaying simple fields and labels, but may not quite meet your needs.
We had the same problem. So We made a slack app and made it free for public. Please feel free to check it out. https://rendreit.digital
After installing the app to your slack. You can do /tableit and paste in csv data or anything you copied from a spreadsheet (Excel or Google Sheet).
It also let your preview the rendered table before you send it to the chat.