{"id":21164,"date":"2023-07-17T11:03:36","date_gmt":"2023-07-17T09:03:36","guid":{"rendered":"https:\/\/help.openbee.com\/open-bee-scan-capture\/administrators-guide\/configuration\/general-setup\/output-setting\/file-profile-data-original-file-version-4-6-0-or-higher\/"},"modified":"2026-05-13T09:36:24","modified_gmt":"2026-05-13T07:36:24","slug":"file-profile-data-original-file-version-4-6-0-or-higher","status":"publish","type":"page","link":"https:\/\/help.openbee.com\/en\/open-bee-scan-capture\/administrators-guide\/configuration\/general-setup\/output-setting\/file-profile-data-original-file-version-4-6-0-or-higher\/","title":{"rendered":"File Profile: Data\/Original File (Version 4.6.0 or higher)"},"content":{"rendered":"\n<p>These two profiles can be exported in two different ways:<\/p>\n\n<ul class=\"wp-block-list\">\n<li>Via Gateway: To export the files to the Windows workstation where the Gateway is installed<\/li>\n\n\n\n<li>Via FTP: To export files to a specific FTP<\/li>\n<\/ul>\n\n<h2 class=\"wp-block-heading\">Profile Data File<\/h2>\n\n<p>The &#8220;Data File&#8221; output allows you to export raw document data into the implemented structure via the Mustache model.<br\/>There are two models available:<\/p>\n\n<ul class=\"wp-block-list\">\n<li>File Path: A template to create the path where the data file should be exported<\/li>\n\n\n\n<li>File Contents: Template for creating the internal structure of the file<\/li>\n<\/ul>\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"801\" height=\"509\" src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2023\/07\/image-3.png\" alt=\"\" class=\"wp-image-15627\" srcset=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2023\/07\/image-3.png 801w, https:\/\/help.openbee.com\/wp-content\/uploads\/2023\/07\/image-3-300x191.png 300w, https:\/\/help.openbee.com\/wp-content\/uploads\/2023\/07\/image-3-768x488.png 768w\" sizes=\"auto, (max-width: 801px) 100vw, 801px\" \/><\/figure>\n\n<h2 class=\"wp-block-heading\">Origin File Profile<\/h2>\n\n<p>The &#8220;Original File&#8221; output allows you to export the PDF document to the location indicated by your mustache template<\/p>\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"839\" height=\"403\" src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2023\/07\/image-4.png\" alt=\"\" class=\"wp-image-15628\" srcset=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2023\/07\/image-4.png 839w, https:\/\/help.openbee.com\/wp-content\/uploads\/2023\/07\/image-4-300x144.png 300w, https:\/\/help.openbee.com\/wp-content\/uploads\/2023\/07\/image-4-768x369.png 768w\" sizes=\"auto, (max-width: 839px) 100vw, 839px\" \/><\/figure>\n\n<h2 class=\"wp-block-heading\">Structure Mustache<\/h2>\n\n<p>For more information about the Mustache structure, you can consult the <a href=\"https:\/\/help.openbee.com\/en\/open-bee-scan-capture\/knowledge-base\/model-mustache\/\">Mustache Model<\/a> page<\/p>\n\n<h3 class=\"wp-block-heading\">Pre-built tags<\/h3>\n\n<p>By default, you can use your variables directly in your Mustache structure. However, if you need to export multiple documents within the same file, it is possible to create a loop using the {{#documentBeans}} tag<\/p>\n\n<p>Ex. <\/p>\n\n<pre class=\"wp-block-code\"><code>{{#documentBeans}}\n{{thirdpart}};{{buyer}};{{invoice_number}}\n{{\/documentBeans}}<\/code><\/pre>\n\n<h3 class=\"wp-block-heading\">Item Group or Line Index (4.7.0 or higher)<\/h3>\n\n<p>There are two ways to use an item row subindex or a group sub-index<\/p>\n\n<p><em>Solution 1<\/em> <em>(Single Value):<\/em> <em>Use the id Unit of the desired value directly. This way, you can access your variable from anywhere in your mustache code<\/em>. <em>Ex: variable NumRef<\/em><\/p>\n\n<pre class=\"wp-block-code\"><code>{{NumRef_1}} ou {{NumRef_2}} ...<\/code><\/pre>\n\n<p><em>Solution 2 (Loop on Rows): Use the item or group line ID as context, and then use your mustache variable inside. E<\/em>x<em>: variable NumRef<\/em><\/p>\n\n<pre class=\"wp-block-code\"><code>{{#ARTICLE_INDEX}}\n{{NumRef}}\n{{\/ARTICLE_INDEX}}<\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">Export Scheduling<\/h2>\n\n<p>For more details on how to schedule the output export, you can consult the <a href=\"https:\/\/help.openbee.com\/en\/open-bee-scan-capture\/administrators-guide\/configuration\/general-setup\/output-setting\/batch-export\/\">Batch Export<\/a> page<\/p>\n","protected":false},"excerpt":{"rendered":"<p>These two profiles can be exported in two different ways: Profile Data File The &#8220;Data File&#8221; output allows you to export raw document data into the implemented structure via the Mustache model.There are two models available: Origin File Profile The &#8220;Original File&#8221; output allows you to export the PDF document to the location indicated by [&hellip;]<\/p>\n","protected":false},"author":97,"featured_media":0,"parent":21152,"menu_order":3,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-21164","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21164","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\/97"}],"replies":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/comments?post=21164"}],"version-history":[{"count":2,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21164\/revisions"}],"predecessor-version":[{"id":29242,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21164\/revisions\/29242"}],"up":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21152"}],"wp:attachment":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/media?parent=21164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}