I have a custom dashboard that allows me to select endpoints for tagging with a client setting.
Users load their credentials into a form input, select computers from a datatable and submit.
An action is submitted with relevance “set of (ids of selected computers) contains computer id” , and the actionscript is ‘setting “whatever” = “xyz” on “{now}” for client’
In my lab, I receive a response text with an action id.
in prod, i receive Failure code: 0
One major difference is that we are using saml login in prod.
Apologies I misread this badly on my earlier response.
I’d try checking the .statusText property to see whether there is a useful error message.
Also consider that wizards.js provides a function ImportXMLToSite() function that should let you avoid setting up a separate session and avoid reauthenticating. You should be able to just build your XML and pass it to this function directly.
Ok I just looked up one of my dashboard sources, and it’s literally as simple as
ImportXMLToSite(strXML,strSite,true)
strXML is the string representation of the XML, strSite is an (optional) Site Name (for an Action it should be an empty string), and ‘true’ or ‘false’ for whether to show the action preview / import preview screen in the Console.
wizards.js should automatically be included in Dashoards, you don’t have to import it explicitly. If you like you can read the source of it in the BES Console\Reference directory.
– and Success … this works with SAML/SSO enabled.
Jus a slight modification required on my xml (i had to add the computer ids to the targets, and not depend on relevance for targeting)
The online documentation should be updated to make this more widely known