Unified log viewer for Content Manager

The various Content Manager components have a variety of formats making it a non-trivial task to get a unified view of what is happening across the ecosystem. This plugin for Tailviewer smooths out the differences making it easier to diagnose issues that span more than one component (e.g. web service and workgroup server).

Read More

Avoid setting DateLastUpdated when downloading a document

The default behaviour in Content Manager is to update the data LastUpdated when getting an electronic document from a Record. This can be problematic, particularly in cases where you want to get the document every time the Record changes. Thankfully this update can be override.

Read More

Logic Apps (and Flow) CM trigger and send to Microsoft Teams

In a previous post I described my initial experiments with Microsoft Logic Apps. For this post I have created a trigger on Content Manager so that the Logic App can react to modifications to Records. To make this work I needed to make a small modification to the ServiceAPI code, this could be applied to an existing CM installation via a ServiceAPI plugin.

Read More

Using TrimDateTime from a web service

When writing a web service that uses the CM SDK you need to take into account the fact that different users may be in different time zones. The SDK date/time object, TrimDateTime operates, buy default, in the same time zone as the operating system. To ensure you set dates correctly you need to convert it to operate in the same time zone as the user. The sample code demonstrates how to do this, for more detail have a look at this video.

Read More

Workaround for incorrect date returned in Additional Fields

When posting a date to an Additional Field in the web service the date returned in the response is incorrect, even though the date set in CM is correct. The problem is caused by a bug in handling time zone offsets. The scenarios in this post assume that:

  • all actors (web service, client, WGS) are using the same time-zone settings, and
  • dates are always sent as UTC (not local) dates.
Read More

Update to site

As of Monday 15th July 2019 I have moved the hosting for this web site from Squarespace to Github pages. The main motivation for this was to consolidate with our samples repo. The only annoyances I expect for readers of this blog are:

  1. links to individual posts have changed, all posts can be found in the index
  2. the RSS feed link as changed, select the RSS link at the bottom of the page to subscribe to this blog.
Read More

Query CM from Excel

One of the outputs from my recent experimentation with PowerBI and Power Query is this saved search connector. I do not spend much time in Excel myself but I know that it is popular out there in the real world. If you would like to see something more/different contact me on the forum or through the usual channels.

Read More


Spending most of my days alone in an office I love the occasions when I get to meet some of the people who use CM. One of the most enjoyable experiences is hearing directly from people who need a particular fix/feature and then being able to go back to my office and make that happen.

I, along with various other CM developers, will be at Realize this year, I will not venture beyond Melbourne but members from the dev team will be at all the Realize events.

Come along, tell us your stories and shine a light into the long lonely months in the office.

Read More

Deleting files left behind by the Office Integration

The scenario:

  1. open Excel

  2. create a worksheet

  3. check the worksheet into CM using the Office Integration

  4. close Excel

  5. a temp file is left behind in Documents\Micro Focus CM

  6. the file is deleted the next time you open Excel (or another Office application).

The problem

The scenario described above occurs because Excel retains a handle on the file until it has completed closing, at which point the Office Integration has been unloaded and is unable to delete the file. Other Office applications (e.g. Word) release the file before they close allowing the Office Integration to delete the temp file.

A Workaround

While a future version of CM may contain a solution for this problem a work-around available today is to run a powershell script from the windows task scheduler to delete left over files.

The Script

The script below finds all files scheduled for deletion in the managed docs XML file, deletes them and removes the entry from the XML file.

$filePath = $env:APPDATA + "\Micro Focus\Content Manager\OfficeIntegration\managedDocs"

Read More