How to specify several batch types while configuring FlexiCapture Connect?

Question

How to specify several batch types while configuring FlexiCapture Connect?

 

Answer

For each batch type, there should be a separate project node in the config file:

"url": "https://usa.flexicapture.com",
"tenant": "Example",
"user": "AdminUser",
"password": "",
"projects": [
  {
    "name": "US_Invoices",
    "batchType": "Sachs",
    "import": {
      "directory": "C:\\ABBYY\\Upload\\Invoices",
      "fileMask": "*",
      "settings": {
        "region": "US",
        "verification_type": "NoVerification",
        "export_format": "Xml"
      },
      "createDocument": "Automatically", // allowed: "ForEachFile", "Automatically"
      "period": "00:05:00",
      "schedule": [ "12:00:00", "06:00:00" ]
    },
    "export": {
      "directory": "C:\\ABBYY\\Download",
      "period": "00:05:00",
      "schedule": [ "12:00:00" ]
    },
    "templates": [
      {
        "name": "Invoice",
        "datasets": [
          {
            "name": "POs",
            "file": "C:\\ABBYY\\UPLOAD\\DataSets\\ABBYY eCMS Data - PO Numbers.csv",
            "period": "00:05:00",
            "schedule": [ "12:00:00" ]
          },
    {
            "name": "Vendors",
            "file": "C:\\ABBYY\\UPLOAD\\DataSets\\ABBYY eCMS Data - Vendors.csv",
            "period": "00:05:00",
            "schedule": [ "12:00:00" ]
          }
        ]
      }
    ]
  }
  {
    "name": "US_Invoices",
    "batchType": "Default",
    "import": {
      "directory": "C:\\ABBYY\\Upload\\Invoices",
      "fileMask": "*",
      "settings": {
        "region": "US",
        "verification_type": "NoVerification",
        "export_format": "Xml"
      },
      "createDocument": "Automatically", // allowed: "ForEachFile", "Automatically"
      "period": "00:05:00",
      "schedule": [ "12:00:00", "06:00:00" ]
    },
    "export": {
      "directory": "C:\\ABBYY\\Download",
      "period": "00:05:00",
      "schedule": [ "12:00:00" ]
    },
    "templates": [
      {
        "name": "Invoice",
        "datasets": [
          {
            "name": "POs",
            "file": "C:\\ABBYY\\UPLOAD\\DataSets\\ABBYY eCMS Data - PO Numbers.csv",
            "period": "00:05:00",
            "schedule": [ "12:00:00" ]
          },
    {
            "name": "Vendors",
            "file": "C:\\ABBYY\\UPLOAD\\DataSets\\ABBYY eCMS Data - Vendors.csv",
            "period": "00:05:00",
            "schedule": [ "12:00:00" ]
          }
        ]
      }
    ]
  }
]
}

 

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.