Quantcast
Channel: THWACK: All Content - All Communities
Viewing all articles
Browse latest Browse all 13537

Help with Best Way to Retrieve a List of Objects Based on Alert Trigger Condition Scopes (Summary Report)

$
0
0

Before I spend anymore time working on this, I wanted to post this to see if there is a better way.  I need a report that will tell me what objects each configured Alert can trigger on based on an alert's Trigger Condition Scope (Kind of like a big Summary Report of the "All Objects this Alert Can Trigger but instead of being for one object, I want it for all objects and all alerts.)  Since I can't find whatever Query drives the "All Objects this Alert Can Trigger" and use that to just build a SWQL/SQL statement, I figured I could just parse the XML from the "Trigger" field in the AlertConfigurations table.  The problem there is that while I'm pretty good with SQL/SWQL, I'm more comfortable with PowerShell and feel like it'd be easier to parse the XML using that instead of some complex LIKE statement in SQL/SWQL.  Especially since PowerShell can navigate through the XML in that Trigger field so well.

 

Even though XML is pretty easy to manipulate in PowerShell, I feel like there is probably a better way, so I'm hoping somebody can advise me on this (especially aLTeReGo or tdanner, but anyone knowledgeable is fine) before I waste a bunch of time creating the PowerShell script or learning how to work with and parse XML in SQL/SWQL and creating a complex query to evaluate all of these.  I want to say I found the SWQL query that the "All Objects this Alert Can Trigger" uses once a few months ago either in a log file (due to a "Long Running Query" warning message in the SWIS or OrionWebsite log file), but even with Verbose logging turned on I don't see anything about that resource's backend code.  I found the files that drive that resource in the InetPub folder but they don't have the query in there at all either, so I'm guessing it's buried in a DLL file somewhere.


Viewing all articles
Browse latest Browse all 13537

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>