Jump to content

Steve G

Hornbill Developer
  • Posts

    748
  • Joined

  • Last visited

  • Days Won

    31

Posts posted by Steve G

  1. Hi @AndyGilly,

    This is not WW environment specific, Windows servers restrict script execution by default. We've provided a Set Execution Policy operation in the Windows Management package that can be executed either side of the operation you wish to run so that the local machine or current user policy doesn't need to be left in a  permanently relaxed state. So in a runbook for example, you could use the Set Execution Policy operation to relax the script execution policy for the current user, then execute your actual operation, then use Set Execution Policy to restrict it again.

    I expect the AD package operations are ok as the target machine must already have a less-restrictive script execution policy in place, either in the local machine or current user policies.

    Cheers,

    Steve

  2. Hi @AndyGilly,

    This error would suggest that the value provided to the SiteID input parameter isn't a valid, or accessible, ECM site. The operation basically uses the Set-Location cmdlet to set the execution location to the ECM site drive using the provided site ID, then uses the Add-CMDeviceCollectionDirectMembershipRule cmdlet (alongside a couple of other bits) to add the supplied device to the collection. The SiteID will be case-sensitive too, so it may be worth checking this first.

    Cheers,

    Steve

    • Like 1
  3. Hi @Martyn Houghton,

    You could use the data::entityBrowseRecords2 API, pointing at the Contact entity in the com.hornbill.core application, for example:

    <methodCall service="data" method="entityBrowseRecords2">
    	<params>
    		<application>com.hornbill.core</application>
    		<entity>Contact</entity>
    		<searchFilter>
    			<column>h_email_1</column>
    			<value>some.email@address.com</value>
    			<matchType>exact</matchType>
    		</searchFilter>
    		<searchFilter>
    			<column>h_contact_status</column>
    			<value>0</value>
    			<matchType>exact</matchType>
    		</searchFilter>
    	</params>
    </methodCall>

    Would return the contact wiith the defined email address in the h_email_1 column, with a status of 0 (active).

    Cheers,

    Steve

    • Like 1
  4. Hi @Ann,

    You could always access the CSV file using the Database Asset Relationship Import tool via an ODBC data source, and write the query as appropriate to your data. See the DBConf details on the wiki page you've linked above for more information:

    image.png

    Thanks,

    Steve

  5. Hi @samwoo,

    Yes, this will likely require a fair amount of work to achieve - I expect we'll need to cache all asset and extended information records from Hornbill into memory tool-side, then check each of the assets being imported against that cache. It's been on the to-do list to add this feature for a while though... I'll take a more detailed look in the new year and get back to you.

    Cheers,

    Steve

    • Thanks 1
  6. Hi @Jeremy,

    Apologies for the late response on this.

    There's a utility node to escape strings ready to be inserted into JSON, this is what you need to use on the field in question before using the result of this node in your JSON:

    image.png

     

    So without pushing the description through this node, and adding it in its vanilla state to the JSON, your output is (as you have seen):

    image.png

     

    But preparing the string with the workflow utility before adding it to your JSON, and you get the desired result:

    image.png

    Let me know if this helps.

    Cheers,

    Steve

    • Like 1
  7. Hi @samwoo,

    I didn't notice the Create/Update/Both request when doing the PreserveState etc feature, so I've added that into the tool, v1.12.0 contains that feature :) 

    https://github.com/hornbill/goDBAssetImport/releases/tag/v1.12.0

    Check out the OperationType property of the AssetTypes objects, you can set them to BothCreate or Update. Leaving the parameter blank (or indeed not even including it) will perform the previous logic (so Both :) ).

    Cheers,

    Steve 

    • Like 1
    • Thanks 1
  8. Hi @samwoo,

    I've just released v1.11.0 of the DB Asset Import Tool, that supports preserving Status/SubStatus/Operational Status values for updating assets. Can be downloaded from here:

    https://github.com/hornbill/goDBAssetImport/releases/latest

    Check out the new PreserveStatePreserveSubState and PreserveOperationalState options in the AssetTypes definitions.

    Setting the Status to Active when assets are inserted is alredy possible, you just need to add:

    "h_record_state": "1",

    To the AssetGenericFieldMapping.

    Cheers,

    Steve

     

    • Thanks 1
  9. Hi @m.vandun,

    This message just means that the report is already being run on your Hornbill instance, either from the admin tool or a script that has executed it. You can check the running status of a report in the admin console - it's on the Status column in the Report History tab. You (or your automated scripts) will need to wait until the current report run is complete before firing off another request.

    Cheers,

    Steve

  10. @Jeremy The easiest way to check if this is an issue with your endpoint or Hornbill sending the requests would be to setup your own RequestBin (I just used a free public one in the above test), point your HTTP Request node at that, leaving the headers and body as they are and just replace the URL, then check to see if the request is received when your workflow sends it. This should prove that the node and workflow are working, and that there may be an issue with your endpoint. 

    Thanks,

    Steve

  11. Hi @StephC,

    I've just released version 1.6.0 of the Hornbill Data Export Tool, which supports the use of the XLSX files from reports, as well as the existing CSV file support. It can be downloaded from Github, and is documented on the Hornbill Wiki. Specifically, look for UseXLSX in the Configuration section, and make sure you switch XLSX on in the report config > Output Formats > Additional Data Formats:

    image.png

    Cheers,

    Steve

  12. Hi @Joyce,

    That's likely due to there being a UTF8 character stream in the report output that sits outside of the Unicode codepage - Power BI doesn't play nicely with all UTF8 characters (unlike pretty much every other system!). I've added some extra code into the script to do the conversion to allow Power BI to import the data, v1.8.0 is on Github now.

    Note: as per the instructions, you will need to change the csvEncoding variable to fix this issue, a value of ISO-8859-1 will probably do it.

    Cheers,

    Steve

×
×
  • Create New...