Quantcast
Channel: THWACK: Popular Discussions - Orion SDK
Viewing all articles
Browse latest Browse all 3719

SWIS or JSON/REST API to bulk IMPORT xml web reports?

$
0
0

NPM 11.5.2, NCM 7.4 and SDK 1.10

 

I have managed to take an xml export of a web based report and using perl, read the file (as one line)  and using regex to replace existing nodeID's, interfaceIDs in the <DataSources> section, Titles and names where applicable.  All other parts of the report are identical.

 

The new xml file imports nicely via the "import" feature in web reports.

 

However, I have about 300 of these individual report files.

 

Does anyone know how to import these via scripting instead of through the web console?

 

I tried to construct a JSON Invoke but I am pretty sure it didn't like the xml file.  the "definition" field in existing reports has different tag names and such.  Tried using one of those as a template... and it still failed.  I am certain the definition is incorrect.

 

If anyone has done this successfully, please let me know.  I don't mind looping through each xml file via a script doing an invoke each time.

 

I also don't mind doing this through swis either. 

 

Also as a FEATURE REQUEST - being able to select multiple files when importing reports would make this much easier.

thanks.


Viewing all articles
Browse latest Browse all 3719

Trending Articles



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