Custom Console Dashboard: ImportXML bug?

Hi,

I’m creating a custom Console Dashboard that will retrieve a list of target groups from a CSV file, and launch actions against these targets.

Everything works fine, except ImportXML. I specify ‘false’ for openDocuments parameter, but it always displays the Take Action dialog.

I run this command :

var result = ImportXML(actionXML, false);

the ‘actionXML’ contains needed information (site, fixlet, targets) and it well formatted, considering the take action dialog which is displayed.

I don’t know what I’m doing wrong. Has anyone already seen this behavior? I really need this to be silent, because the dashboard can launch up to 20 different actions, and I don’t want Console user to have to click 20 times on “OK” button…

Thanks for your help!

BES Version : 9.5.7.90

I’m doing that now in my deployment. Should be at the office in an hour, will let you know the parameters I’m using.

Thanks Jason, will be waiting for your update !

I’m using the ImportXMLToSite(strActionXML) function. My action is a SourcedFixletAction, the XML starts with

<BES xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="BES.xsd">
<SourcedFixletAction SkipUI="true">
<SourceFixlet>
<Sitename>MyCustomSiteName</Sitename>
<FixletID>16931044</FixletID>
<Action>Action1</Action>
</SourceFixlet>

It’s the SkipUI="true" attribute on the SourcedFixletAction node that hides the user interface preview for me.

According to the schema at https://developer.bigfix.com/rest-api/bes_xsd.html , <xs:attribute name="SkipUI" type="xs:boolean"/> should be available for several objects including <xs:complexType name="MultipleActionGroup"> , <xs:complexType name="SourcedFixletAction">, and <xs:complexType name="SingleAction">

Jason, thanks a ton, it works with the SkipUI=“true” attribute !

I owe you one :slight_smile::ok_hand:

1 Like