We just published an extension to the Templates/Info endpoint:

https://api.reporting.cloud/v1/templates/info

The endpoint returns information about the template including merge fields and merge blocks. Now, it returns additionally customer user defined document properties. In MS Word, these properties can be found in the Advanced Properties dialog in the file info backstage menu:

MS Word custom properties

The response value is described in the following table:

Key Value Type Value description
templateName String The filename of the template in the template storage.
userDocumentProperties Dictionary (key, value) of user defined document properties Contains all user defined document properties.
mergeBlocks List of ReportingCloud MergeBlock objects Contains all merge blocks in the template.
mergeFields List of ReportingCloud MergeField objects Contains all merge fields in the template.

The returned JSON looks like in the following sample. The new properties can be found in the userDocumentProperties property:

{
"templateName":"sample_docx.docx",
"mergeBlocks":[
],
"mergeFields":[
],
"userDocumentProperties":{
"custom_entry2":"entry2_value",
"custom_entry1":"entry1_value"
}
}
view raw test.json hosted with ❤ by GitHub

Test this on your own and get your free trial account for ReportingCloud today.