Views:

Question:
How can I fill a DocuWare table field with Make.com?

Answer:
Please refer to the following guide to fill a DocuWare table field with Make.com;


Generating the Sample Table JSON

  1. Add a DocuWare\Get Document Information module.
  2. Enter the File Cabinet GUID (KBA-36863) and the DocID of a document that contains Table Data.
  3. Run the Scenario, then click on the "thought bubble" that appears on the Module:

e DocuWare <br>Get Document Information
 

  1. Select Download Output Bundles.

DocuWare <br>Initialization <br>Operation 1 • <br>INPUT <br>@ Bundle I: <br>Document ID: 2470 <br>x <br>Data size: 4.8 Kg <br>Download input bundles <br>Download output bundles <br>File Cabinet/Dacument <br>c2cd5dd8b900 <br>Pruideable Fields:
 

  1. Locate your Table Field. You can Ctrl+F for "ItemElementName": "Table"
  2. Copy the structure of your Table Field. This will look different depending on the number of rows that the table you referenced has. In this example, I have 3 rows filled:
[
{
"TABLE_NAME": "NameValue1",
"TABLE_STATUS": "StatusValue1",
"TABLE_COMPANY": "CompanyValue1"
},
{
"TABLE_NAME": "NameValue2",
"TABLE_STATUS": "StatusValue2",
"TABLE_COMPANY": "CompanyValue2"
},
{
"TABLE_NAME": "NameValue3",
"TABLE_STATUS": "StatusValue3",
"TABLE_COMPANY": "CompanyValue3"
}
]
 

Using the Sample Table JSON

  1. Add and connect to an Aggregate to JSON module and add a new Data Structure.
  2. Under Specification, choose the Generate option and paste in the sample JSON you copied earlier:

Generate <br>Content type <br>JSON <br>Sample data <br>Provided data are only used to generate a structure descriptor. <br>We do not save anything on our servers. <br>Close <br>re name <br>;tructur <br>Generate <br>not be empty. <br>NO <br>this data structure will be compared to the structure <br>Dad and if the payload contains extra items not <br>the data structure, the payload will be rejected. <br>Close <br>Add <br>el <br>Generate
 

  1. Your table Columns should appear as individual items. If everything seems correct, save this step and leave the values empty for now.

Add data structure <br>Data structure name <br>My data structure <br>Specification <br>TABLE NAME <br>Name <br>TABLE_NAME <br>2 Name of the property. <br>Type <br>Text <br>Default <br>Default value. <br>Required <br>O <br>Yes <br>NO <br>Multi-line <br>O <br>Yes <br>NO <br>TABLE STATUS Type: text <br>TABLE COMPANY Type: text <br>Add item Generate

Writing to DocuWare

  1. Add a DocuWare\Update the Document Index Fields module and connect it to our previous JSON step.
  2. Choose the File Cabinet and DocID of the document with the Table Field you'd like to fill. The available Index Fields should appear below.
  3. Locate the Table Field you'd like to fill. Toggle the Update Field option to Yes and determine which option you'd like to use to fill this Table:

"Select" / Individual Rows
Useful if you only need to fill a fixed number of rows.
 
Note: Each "Item" is 1 entire row of the Table and must be in JSON format!

Here is an example - each cell is a separate "Item" and will generate 3 rows in DW:

 

{"TABLE_NAME":"NameValue1","TABLE_STATUS":"StatusValue1","TABLE_COMPANY":"CompanyValue1"}
{"TABLE_NAME":"NameValue2","TABLE_STATUS":"StatusValue2","TABLE_COMPANY":"CompanyValue2"}
{"TABLE_NAME":"NameValue3","TABLE_STATUS":"StatusValue3","TABLE_COMPANY":"CompanyValue3"}

Table (Table) <br>Update Field <br>O <br>Yes <br>Table value <br>Item 1 <br>Item 2 <br>Item 3 <br>Add item <br>NO
 
"Map" / Multiple Rows
Useful if you're going to have a dynamic number of rows.
Here is an example JSON, it can be easily scaled and allows for more flexible configurations:

[
{
"TABLE_NAME": "NameValue1",
"TABLE_STATUS": "StatusValue1",
"TABLE_COMPANY": "CompanyValue1"
},
{
"TABLE_NAME": "NameValue2",
"TABLE_STATUS": "StatusValue2",
"TABLE_COMPANY": "CompanyValue2"
},
{
"TABLE_NAME": "NameValue3",
"TABLE_STATUS": "StatusValue3",
"TABLE_COMPANY": "CompanyValue3"
}
]

 

Table (Table) <br>update Field <br>O <br>No <br>Yes <br>Table value <br>"TABLE_NAME": "NameValue1", <br>"TABLE_STATUS": 'Statusvaluel'i, <br>"TABLE_COMPANY": "Companyval <br>uel" <br>"TABLE_NAME": "NameValue2", <br>"TABLE_STATUS": "Statusvalue2", <br>"TABLE_COMPANY": "Companyval <br>ue2" <br>"TABLE_NAME": "NameValue3", <br>"TABLE_STATUS": "Statusvalue3", <br>"TABLE_COMPANY": "Companyval <br>ue3"
 
Both examples will produce the same result in DocuWare:
Table <br>Name <br>NameValue1 <br>NameValue2 <br>NameValue3 <br>StatusValue1 <br>StatusValue2 <br>StatusValue3 <br>Company <br>CompanyValue1 <br>CompanyValue2 <br>CompanyValue3

KBA applicable for Cloud Organizations ONLY