2023:Box (CMIS Binding): Difference between revisions
Dgreenwood (talk | contribs) |
Dgreenwood (talk | contribs) |
||
| Line 219: | Line 219: | ||
=== Configuring a Basic Box Export === | === Configuring a Basic Box Export === | ||
<tabs style="margin:20px"> | <tabs style="margin:20px"> | ||
<tab name="Add | <tab name="Add the Export Behavior" style="margin:25px"> | ||
====Add | ====Add the Export Behavior==== | ||
This configuration is specific to this article. While aspects of it can apply to any configuration, it's worth noting that your environment may require slightly different settings (especially considering proprietary pieces of information like the Account ID). Note that the URLs in the image cannot be connected to externally, so attempting to copy this configuration verbatim will give you errors. This is meant as a guide, and will require an actual Box environment on your end to be established, and real information from it supplied.<br/> | This configuration is specific to this article. While aspects of it can apply to any configuration, it's worth noting that your environment may require slightly different settings (especially considering proprietary pieces of information like the Account ID). Note that the URLs in the image cannot be connected to externally, so attempting to copy this configuration verbatim will give you errors. This is meant as a guide, and will require an actual Box environment on your end to be established, and real information from it supplied.<br/> | ||
{|class="fyi-box" | |||
| | |||
'''FYI''' | |||
| | |||
This article demonstrates how to configure an '''''Export Behavior''''' on a '''Content Model'''. '''''Export Behaviors''''' can be configured on any '''Content Type''' ('''Content Models''', '''Content Categories''' or '''Document Types''') or on the '''Export''' activity step itself. | |||
* For more information on '''''Export Behaviors''''' visit the [[Export (Activity)]] article. | |||
|} | |||
{| class="how-to-table" | {| class="how-to-table" | ||
| | |||
# Select your '''Content Model'''. | # Select your '''Content Model'''. | ||
# Make sure you are on the "Content Model" tab | # Make sure you are on the "Content Model" tab | ||
# Select the | # Select the ellipsis button to the right of the '''''Behaviors''''' property. | ||
|| [[File:2023-Box-CMIS-Binding-Configuring-a-Basic-Box-Export-Add-an-Export-Behavior-01.png]] | || [[File:2023-Box-CMIS-Binding-Configuring-a-Basic-Box-Export-Add-an-Export-Behavior-01.png]] | ||
|- | |- | ||
| | |||
# <li value="4"> Select the | # <li value="4"> Select the "Add" button. </li> | ||
# In the drop-down menu, select Export Behavior. | # In the drop-down menu, select ''Export Behavior''. | ||
|| [[File:2023-Box-CMIS-Binding-Configuring-a-Basic-Box-Export-Add-an-Export-Behavior-02.png]] | || [[File:2023-Box-CMIS-Binding-Configuring-a-Basic-Box-Export-Add-an-Export-Behavior-02.png]] | ||
|- | |- | ||
| | |||
# <li value="6"> Select | # <li value="6"> Select the ellipsis button to the right of the '''''Export Definitions''''' property.</li> | ||
|| [[File:2023-Box-CMIS-Binding-Configuring-a-Basic-Box-Export-Add-an-Export-Behavior-03.png]] | || [[File:2023-Box-CMIS-Binding-Configuring-a-Basic-Box-Export-Add-an-Export-Behavior-03.png]] | ||
|- | |- | ||
| | |||
# <li value="7"> Click the Add button.</li> | # <li value="7"> Click the "Add" button.</li> | ||
# Select | # Select ''CMIS Export''. | ||
|| [[File:2023-Box-CMIS-Binding-Configuring-a-Basic-Box-Export-Add-an-Export-Behavior-04.png]] | || [[File:2023-Box-CMIS-Binding-Configuring-a-Basic-Box-Export-Add-an-Export-Behavior-04.png]] | ||
|- | |- | ||
| Line 246: | Line 255: | ||
<tab name="Configure the Export Definition" style="margin:25px"> | <tab name="Configure the Export Definition" style="margin:25px"> | ||
==== Configure the Export Definition ==== | ==== Configure the Export Definition ==== | ||
Let's move on to configuring your '''''Export Definition'''''. | |||
* This is a crucial step, as you're essentially laying out the map in front of your '''''Export Behavior''''', and telling it what you want exported, where you want the data saved, and what properties you want written to the exported object. In other words, you're circling the destination in the brightest red possible, while giving the '''''Behavior''''' everything it needs to take with it. | |||
{| class="how-to-table" | {| class="how-to-table" | ||
| | |||
#Click the | #Click the hamburger symbol to the right of the '''''CMIS Repository'''' property. | ||
# In the drop-down menu, | # In the drop-down menu, select the '''CMIS Repository''' you wish to export to. | ||
#* In our case, this is the "All Files" repository, representing the root folder of our Box account. | |||
|| [[File:2023-Box-CMIS-Binding-Configuring-a-Basic-Box-Export-Configure-the-Export-Definition-01.png]] | || [[File:2023-Box-CMIS-Binding-Configuring-a-Basic-Box-Export-Configure-the-Export-Definition-01.png]] | ||
|- | |- | ||
| | |||
#<li value="3">If you want to | #<li value="3">If you want export to a subfolder in the Box account, select the desired folder using the '''''Target Folder''''' property.</li> | ||
{|class="fyi-box" | |||
|- | |||
| | |||
'''FYI''' | |||
| | |||
The '''''Subfolder Path''''' property allows you to dynamically create folder locations on export using a .NET code expression. | |||
|} | |||
||[[File:2023-Box-CMIS-Binding-Configuring-a-Basic-Box-Export-Configure-the-Export-Definition-02.png]] | ||[[File:2023-Box-CMIS-Binding-Configuring-a-Basic-Box-Export-Configure-the-Export-Definition-02.png]] | ||
|- | |- | ||
| | | | ||
#<li value="4">From here, you can select your | Pressing the ellipsis next to the '''''Target Folder''''' property will bring up a folder browser. | ||
# Once | #<li value="4">From here, you can select any folder in your Box account you want to export to.</li> | ||
# Once you've selected the folder you want, click "OK". | |||
||[[File:2023-Box-CMIS-Binding-Configuring-a-Basic-Box-Export-Configure-the-Export-Definition-03.png]] | ||[[File:2023-Box-CMIS-Binding-Configuring-a-Basic-Box-Export-Configure-the-Export-Definition-03.png]] | ||
|- | |- | ||
| | |||
#<li value="6"> | #<li value="6">Next, you will need to choose the '''''Object Type''''' you're exporting.</li> | ||
# When finished, click OK. | #* We're exporting documents (not folders) So, we've selected ''File'. | ||
{| | # When finished, click "OK". | ||
{|class="attn-box" | |||
|- | |- | ||
| | |⚠ | ||
| | |||
The '''''Export Format''''' property is extremely critical when exporting documents. This determines what kind of file Grooper creates and exports (e.g. a PDF or TXT or XML file). This property will be configurable once ''File'' is selected. | |||
* For more information on '''''Export Formats''''', visit the [[Export (Activity)]] article. | |||
|} | |} | ||
||[[File:2023-Box-CMIS-Binding-Configuring-a-Basic-Box-Export-Configure-the-Export-Definition-04.png]] | ||[[File:2023-Box-CMIS-Binding-Configuring-a-Basic-Box-Export-Configure-the-Export-Definition-04.png]] | ||
Revision as of 10:33, 7 June 2023

A Box Connection is a type of CMIS Connection one can set up in Grooper in order to import documents from, or export documents to Box.
About
|
You may download and import the files below into your own Grooper environment (version 2023). The first contains a Project with several Content Models used as examples throughout this article. The second contains some example Batches of sample documents.
|
Integration with Box in Grooper leverages the CMIS+ architecture to allow you to take full advantage of this powerful Content Management System.
How To
Understanding the Box Platform
|
FYI |
This article assumes you already have a Box account and can access it. |
Understanding Box As A File System
|
It is important to understand Box is essentially a cloud-based file system. It is a storage repository consisting of files in folders. |
|
Understanding Box As Data Storage Platform
|
As well as a basic file system, Box can store data using "Metadata Templates". Metadata Templates can be assigned to files or folders in Box.
With a Metadata Template attached to a file or folder, values for each field can be saved in Box. With a "Mapped Export", you can marry data Grooper collects for a document with a corresponding field in the Metadata Template on export. To see how you would go about creating a "Mapped Export", click here: #Configuring a Mapped Box Export |
Understanding the Content Model for Mapped Exports
|
The purpose of this Content Model is to simply extract three fields of information from a document in its accompanying Batch.
To see how you would go about creating a "Mapped Export", click here: #Configuring a Mapped Box Export |
|
Mapped Export Prereq: Extracted Data
Please note! Before the Document Export activity can send data, it must have data.
In a production scenario, this will be accomplished by the Extract step of a Batch Process.
However, take care when you're testing your configuration to ensure documents have extracted data before exporting to Box.
- It's easy to get in the habit of testing extraction on a Data Field or a Data Model and feel good about the results, but it must be understood that the information displayed when doing so is in memory, or temporary.
- When the Extract activity is successfully run against a classified document, it creates "index data" and marries it to the document via a JSON file called Grooper.DocumentData.json.
|
You can verify a document has extracted data follows:
|
|
|
|
How to Create a Box CMIS Connection
Creating and configuring a CMIS Connection is the first step to importing and exporting with Box.
Account ID
|
In order to connect to Box in Grooper you’ll need and enterprise account, and what Box refers to as an Account ID.
|
|
Create Box CMIS Connection in Grooper
Create a CMIS Connection
|
| ||
|
| ||
Configure the CMIS Connection for BoxOnce your CMIS Connection has been created, set your Connection Settings to Box. This defines settings for Grooper to connect to Box.
|
| ||
Import Your Box RepositoryHaving saved your connection settings, Grooper has established a connection to your Box account, and you can now import the Box repository. This will create a CMIS Repository object Grooper can use to navigate Box's folder and file structure. To do so:
|
| ||
|
The repository (or repositories) available for import will appear.
|
| ||
|
| ||
|
|
By now, you may be wondering: What does importing a repository have to do with connecting to Box?
Why is this important? This is the first step to importing and exporting with Box. We need the CMIS Repository because, later on, when we format our export, we'll need to reference this object. You can't tell Grooper which repository to export to if you don't have an object to point at. Similarly, you can't tell Grooper where to import from if you don't have a repository to point to.
Put another way:
- The CMIS Connection only initiates the connection from Grooper to Box.
- The CMIS Repository is an object that represents a specific folder in Box.
- It is this repository object that allows Grooper to interoperate with the folder location in Box.
Configuring a Basic Box Export
Add the Export Behavior
This configuration is specific to this article. While aspects of it can apply to any configuration, it's worth noting that your environment may require slightly different settings (especially considering proprietary pieces of information like the Account ID). Note that the URLs in the image cannot be connected to externally, so attempting to copy this configuration verbatim will give you errors. This is meant as a guide, and will require an actual Box environment on your end to be established, and real information from it supplied.
|
FYI |
This article demonstrates how to configure an Export Behavior on a Content Model. Export Behaviors can be configured on any Content Type (Content Models, Content Categories or Document Types) or on the Export activity step itself.
|
|
|
|
|
|
|
|
|
Configure the Export Definition
Let's move on to configuring your Export Definition.
- This is a crucial step, as you're essentially laying out the map in front of your Export Behavior, and telling it what you want exported, where you want the data saved, and what properties you want written to the exported object. In other words, you're circling the destination in the brightest red possible, while giving the Behavior everything it needs to take with it.
|
| ||
|
| ||
|
Pressing the ellipsis next to the Target Folder property will bring up a folder browser.
|
| ||
|
| ||
|
|
Configuring a Mapped Box Export
Mapping to a Single Metadata Template
The approach taken below is via the object command interface. These same settings can be applied to a Step in a Batch Process to achieve the same results, albeit in a slightly different area of the Grooper UI.
|
| ||
|
| ||
|
| ||
|
| ||
|
| ||
|
| ||
|
| ||
|
| ||
|
Now, we move onto simple matching. For this, we're specifying which particular pieces of Metadata we're mapping to. Thus, it's important to match each piece exactly.
|
| ||
|
| ||
|
| ||
|
| ||
|
|
Mapping to Multiple Metadata Templates
|
Note that for this section, we've changed the original document, and are using a different Content Model. |
|
|
Much of the steps leading up to constructing your Export Behavior and Definition are the same up to this point. If you would like to see how to configure your Content Model for export, click here: #Configuring a Basic Box Export.
|
|
|
While the convention is the same, we've changed the Name property to avoid any confusion for Box when we export. |
|
|
|
|
|
|
|
|
|
|
Now, we have an exported file mapped to two Metadata Templates. |
|
|
Wonder why we didn't do anything with the tables? Unfortunately, Box cannot read tables, it can only read instances of single value. Hence, why we chose the data we did. |
|
Final Results
Now the Export Behavior(s) have been mapped, it's time to export the document to Box.
Right-Click Export
Normally, exporting would be done through a Batch Process, since all an Export Behavior does is tell Grooper what do do when the process gets to the Export step. However, for the purposes of this article, we will demonstrate how exporting could be done through right-clicking the document.
|
| ||
|
| ||
|
| ||
|
From this point on, you will need to set up your Export Definition exactly as depicted above in the "Configuring a Mapped Export" Section. To see those steps, click here: #Configuring a Mapped Box Export Once your document has been exported, you will see it displayed on the homepage of your Box account. |
| ||
|
Selecting the newly imported document, you will be able to view the Metadata mapped to the document from Grooper. |
| ||
|
|
Performing the Export Within a Batch Step
We will now demonstrate a proxy version of the correct way exporting is performed, ie within a Batch Step process. How to set up a Batch Process will not be discussed here, as it's assumed the reader already knows how to do that. If you would like to know how to set up a Batch Process, click here: [[1]]. This section will display the creating the Export step and working in the Activity Tester of the Batch Process.
|
|
|
|
|
|
|
|
|
|
|
|
|
|


























































