{"id":20492,"date":"2024-02-19T12:37:41","date_gmt":"2024-02-19T11:37:41","guid":{"rendered":"https:\/\/help.openbee.com\/open-bee-portal\/administrators-guide\/automatically-write-properties-to-microsoft-office-documents\/"},"modified":"2024-02-19T12:37:41","modified_gmt":"2024-02-19T11:37:41","slug":"automatically-write-properties-to-microsoft-office-documents","status":"publish","type":"page","link":"https:\/\/help.openbee.com\/en\/open-bee-portal\/administrators-guide\/automatically-write-properties-to-microsoft-office-documents\/","title":{"rendered":"Automatically Write Properties to Microsoft Office Documents"},"content":{"rendered":"<div id=\"main-content\" class=\"wiki-content group\">\n<h2 id=\"Ecritureautomatiquedepropri\u00e9t\u00e9sdanslesdocumentsMicrosoftOffice-Probl\u00e9matique\">Problematic<\/h2>\n<p>Open Bee\u2122 Portal has <a href=\"https:\/\/help.openbee.com\/en\/open-bee-portal\/administrators-guide\/ranking-rules\/\">metadata <\/a>and information attached to documents. It is sometimes interesting to be able to display this information directly in working documents, such as a date of validation of the document in a workflow or simply a metadata of the document.<\/p>\n<h2 id=\"Ecritureautomatiquedepropri\u00e9t\u00e9sdanslesdocumentsMicrosoftOffice-Principedefonctionnement\">Principle of operation<\/h2>\n<p>Open Bee\u2122 Portal can edit <span style=\"color: #575757;\">custom<\/span> properties of MS Office documents.<\/p>\n<p>Refer to the Microsoft documentation on &#8220;<em>Custom Properties&#8221;<\/em> of MS Office Documents.<\/p>\n<p><u>Workflow output<\/u><\/p>\n<p>If the &#8220;<strong>Adding validation information in Office documents<\/strong>&#8221; check box is selected in the workflow configuration. In this case, the following <span style=\"color: #575757;\">custom properties<\/span> will be automatically added or updated in the document when it exits the workflow:<\/p>\n<ul style=\"list-style-type: square;\">\n<li>&#8220;<strong>VERSION&#8221;<\/strong>: The version number is auto-incremented each time the workflow is released.<\/li>\n<li>&#8220;<strong>VALIDATED_BY<\/strong>&#8221; or &#8220;<strong>REJECTED_BY<\/strong>&#8220;: name of the last user to approve or reject the document before it was released from the workflow<\/li>\n<li>&#8220;<strong>VALIDATED_ON<\/strong>&#8221; or &#8220;<strong>REJECTED_ON<\/strong>&#8220;: Workflow release date in case of approval or rejection<\/li>\n<\/ul>\n<p><u>Each time the metadata is changed,  <\/u><\/p>\n<p>If the &#8220;<span style=\"color: #575757;\"><strong>Adding<\/strong> properties in Office documents&#8221; located in the &#8220;<strong>General Configuration Administration&gt;<\/strong>&#8221; screen is checked, each time the Open Bee Portal metadata of an MS Office document is changed, custom properties are created in the document with the same names and values as the Open Bee\u2122\u2122 Portal metadata. <\/span><\/p>\n<p><span style=\"color: #575757;\"> <\/span><\/p>\n<p><span style=\"color: #575757;\"> <\/span><\/p>\n<h2 id=\"Ecritureautomatiquedepropri\u00e9t\u00e9sdanslesdocumentsMicrosoftOffice-Casd'utilisation\">Use case<\/h2>\n<p>To illustrate the possibilities of this feature, let&#8217;s take as an example a document describing a procedure.<\/p>\n<p>This procedure goes through an Open Bee\u2122 Portal validation circuit each time it is modified.<\/p>\n<p>Each time a new version of the procedure is validated in the validation process, we want to automatically modify inside the Word document:<\/p>\n<ul>\n<li>version number<\/li>\n<li>the date of validation<\/li>\n<li>The name of the last person to validate the document.<\/li>\n<\/ul>\n<p>This data will be presented, in the Word document, in the form of a table as follows:<\/p>\n<p><img decoding=\"async\" class=\"confluence-embedded-image\" src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/03\/250447402.png\" data-image-src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/03\/250447402.png\"><\/p>\n<p>We&#8217;ll start by creating 3 custom properties in our Word document with the following names:<\/p>\n<ul style=\"list-style-type: square;\">\n<li>VERSION<\/li>\n<li>VALIDATED_BY<\/li>\n<li>VALIDATED_ON<\/li>\n<\/ul>\n<p>And then we&#8217;re going to insert these custom properties in the appropriate places in the document.<\/p>\n<p>Setting properties screen in Word:<\/p>\n<p><img decoding=\"async\" class=\"confluence-embedded-image\" src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2026\/03\/250447418-translated.png\" data-image-src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2026\/03\/250447418-translated.png\"><\/p>\n<p>Field insertion screen, allowing us to insert our custom properties into the document:<\/p>\n<p><img decoding=\"async\" class=\"confluence-embedded-image\" src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2026\/03\/250447405-translated.png\" data-image-src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2026\/03\/250447405-translated.png\"><\/p>\n<p>In the end, the first version of our document looks like this:<\/p>\n<p><img decoding=\"async\" class=\"confluence-embedded-image\" src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/03\/250447410.png\" data-image-src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/03\/250447410.png\"><\/p>\n<p>Our base document is now ready to go into a Workflow, like this one below for example.<\/p>\n<p><img decoding=\"async\" class=\"confluence-embedded-image\" src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2026\/03\/250447411-translated.png\" width=\"800\" data-image-src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2026\/03\/250447411-translated.png\"><\/p>\n<p>Once the document is approved, the properties in the workflow are changed and the content of the document is as follows:<\/p>\n<p><img decoding=\"async\" class=\"confluence-embedded-image\" src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/03\/250447414.png\" data-image-src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/03\/250447414.png\"><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Problematic Open Bee\u2122 Portal has metadata and information attached to documents. It is sometimes interesting to be able to display this information directly in working documents, such as a date of validation of the document in a workflow or simply a metadata of the document. Principle of operation Open Bee\u2122 Portal can edit custom properties [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":20157,"menu_order":31,"comment_status":"closed","ping_status":"closed","template":"templates\/ob-help-products.php","meta":{"footnotes":""},"class_list":["post-20492","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/20492","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/comments?post=20492"}],"version-history":[{"count":0,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/20492\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/20157"}],"wp:attachment":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/media?parent=20492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}