Forum Discussion
jainshamu
Aug 05, 2021Copper Contributor
Parsing Entities from Azure Sentinel incident into Logic Apps for sending email
Hello, We are trying to automate first level response for our Azure Sentinel Incidents, These Incidents have Custom Entities and we need to pass these Entities to Azure logic Apps so that this En...
m_zorich
Aug 05, 2021Iron Contributor
jainshamu The entities are stored as json so the easiest way is probably to use the parse json and create html table functions to make the data more readable. Your json schema is different to mine, so the first time just run a compose action to capture the output
Once its run once, grab the output from the compose action (we will use it to generate the schema for the parse json action), then update your logic app to the below. On the parse json action, click the 'use sample payload to generate schema' then paste in the output from your first run. Then build a HTML table (again your columns are going to be different to mine so build it with what makes sense for your entities). Then add the output of your create html table action to your email.
Then you should get an email with the table of entities. Just make sure your json schema is perfect, logic apps is really picky, if it expecting a string but gets a null for instance it will fail.
jainshamu
Aug 09, 2021Copper Contributor
Thanks m_zorich, this is really helpful and I could move a step forward. Email reads much better now. HTML table is not at its best now but working to format it with Initialize Variable and Set Variable connector and then passing it to email body.
- KentuckyMike2085Oct 23, 2022Copper Contributor