Skip to content

Commit

Permalink
Fixing export_reference_key (instead of export_id)
Browse files Browse the repository at this point in the history
  • Loading branch information
mirontegze authored and mrtnzlml committed Dec 3, 2024
1 parent 00e2ee7 commit 2805fdf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/learn/export-pipeline/custom-format-templating.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Define CSV header fields as well as the actual datapoints to be exported:
{
"export_configs": [
{
"export_id": "export_annotation_to_csv",
"export_reference_key": "export_annotation_to_csv",
"file_content_template": "Document ID,Document Type,Quantity\n{{field.document_id}},{{field.document_type}},{{field.line_items[0].item_quantity}}"
}
]
Expand All @@ -71,7 +71,7 @@ Alternatively, it is possible to leverage `file_content_template_multiline` for
{
"export_configs": [
{
"export_id": "export_annotation_to_csv",
"export_reference_key": "export_annotation_to_csv",
"file_content_template_multiline": [
"Document ID,Document Type,Quantity",
"{{field.document_id}},{{field.document_type}},{{field.line_items[0].item_quantity}}"
Expand All @@ -95,7 +95,7 @@ It is also possible to iterate line items:
{
"export_configs": [
{
"export_id": "export_annotation_to_csv",
"export_reference_key": "export_annotation_to_csv",
"file_content_template_multiline": [
"Document ID,Document Type,Item Description,Item Quantity",
"{% for item in field.line_items %}{{field.document_id}},{{field.document_type}},{{item.item_description}},{{item.item_quantity}}\n{% endfor %}"
Expand Down Expand Up @@ -126,7 +126,7 @@ Note that such created CSV is not available anywhere in the UI, but it's rather
"custom_format_exports": [
{
"document": "https://elis.rossum.ai/api/v1/documents/123456",
"export_id": "export_annotation_to_csv"
"export_reference_key": "export_annotation_to_csv"
}
]
}
Expand All @@ -145,7 +145,7 @@ Similarly to other formats, custom XML can be defined using the following templa
{
"export_configs": [
{
"export_id": "export_annotation_to_xml",
"export_reference_key": "export_annotation_to_xml",
"content_encoding": "utf-8",
"file_content_template_multiline": [
"<ROSSUM>",
Expand Down Expand Up @@ -174,7 +174,7 @@ Similarly to other formats, custom XML can be defined using the following templa
{
"export_configs": [
{
"export_id": "export_annotation_to_json",
"export_reference_key": "export_annotation_to_json",
"content_encoding": "utf-8",
"file_content_template_multiline": [
"{",
Expand Down

0 comments on commit 2805fdf

Please sign in to comment.