1 comment

When searching for a specific Diagnostic using the DiagnosticSearch object, you can only specify one "name" for the diagnostic in a single call.

The search object only expects one value for the name property and hence, it always searched by the last valid diagnostic name in your example.

If you want to search for multiple diagnostic names, you will have to make a separate call for each one, unless they can be grouped together using a wildcard. You can find more information on DiagnosticSearch object and its properties here.