Integrations and APIs for Service

Get Involved. Join the Conversation.

Topic

    Conor Hughes
    Bulk Export of Incidents via Print Preview using SOAPAnswered
    Topic posted August 30, 2019 by Conor HughesGreen Ribbon: 100+ Points, tagged SOAP 
    31 Views, 3 Comments
    Title:
    Bulk Export of Incidents via Print Preview using SOAP
    Summary:
    Bulk Export of Incidents via Print Preview using SOAP
    Content:

    I recently received a request from a client for the bulk exporting of a large volume of incidents in a readable format. Looking at the 'Incident Print' message template, I can see that a SOAP API call for 'message_render' is being made when pressing the 'Print' button on incidents - however looking in the WSDL on our site I can see that this call isn't exposed to us for use elsewhere.

    Does anyone know of any exposed functionality that would allow for the bulk exporting of incidents in a user-friendly format? I know I could pull back the incident fields & iterate over the threads and export via a few of the API's, but that is rather involved for the volumes we need to export in the given time frame.

    Version:
    19A

    Best Comment

    Conor Hughes

    In case anyone else runs into this issue in future, I have found a workaround. If your site has the BUI enabled you can use a custom PHP script uploaded to the site to load the BUI Incident Print URL into an iframe and utilise Javascript to then print said iframe.

    Comment

     

    • Conor Hughes

      In case anyone else runs into this issue in future, I have found a workaround. If your site has the BUI enabled you can use a custom PHP script uploaded to the site to load the BUI Incident Print URL into an iframe and utilise Javascript to then print said iframe.

    • Tim Roots

      Hi Conor,

      I'm doing a bulk export using a PHP script to pass the relevant URL into a BUI Incident Print iframe. I'm getting a 401 Unauthorized error when trying to load the print URL into the iframe through the script, how did you get around this? I'm stuck on authentication!

      I'd like to avoid sending any credentials through the URL if possible, have any tips?

       

      Cheers,

      Tim

    • Conor Hughes

      Hi Tim,

      The way I managed that was to have an active BUI session open in another tab of the browser being utilised to run the script - not ideal, but saves having to pass credentials via the URL.