cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RoPhi
New Member

Route cloud app security alert by domain suffix

Hello,

 

I'm trying to use a powerautomate flow to send an email when cloudappsecurity raise an alert.

Depending on the domain suffix of the user who triggered the alert, the mail should be sent to specific users.

 

The good news is, I get a flow that seems to work fine, alerts are being sent where I want them to.

 

Bad news is, powerautomate raise some error when the flow is being executed, and I can't just ignore it or it'll get disabled.

 

Here is what the flow looks like : 

 

oKvzx7XqhS.png

 

 

And here is the error : 

 

msedge_Y0XIosS2xa.png

 

 

It's my first flow ever, so maybe I'm missing something obvious. I'd appreciate any help.

 

Regards,

 

RoPhi

2 REPLIES 2
eric-cheng
Solution Sage
Solution Sage

Hi @RoPhi ,

 

This is because Power Automate is expecting a string but got a null.

 

You will need to parse the JSON and specify that the value is nullable.

 

"value1": {
"type": ["number","null"]
},
"value2": {
"type": ["string","null"]
},

 

Please click here to read more.

 

--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up

RoPhi
New Member

So in this scenario, I should add the "Parse JSON" action between "Message" and "Commutateurs" blocks ?

 

And parse the json of the output from "Message" ?

 

Sorry, not a dev at all

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,316)