Repository navigation
ConfigurationBotskey
skilchen edited this page Feb 17, 2016
·
2 revisions
Bots focuses mostly on edi files.
Another useful way of looking at edi is to view at 'business
documents': orders, asn's, invoices etc.
Bots support this, but to have this work satisfactory some
configuration needs to be done.
Essential is the use of document numbers (eg order number, shipment
number, invoice number); in bots this is called 'botskey'.
Once 'botskey' is set correct for your documents, it can be used for:
- Viewing and searching business documents:
- View last run: bots-monitor->Last run->Document
- View all runs: bots-monitor->All run->Document
- Select/search for documents: bots-monitor->Select->Document
- Set output file name in a channel or in a communicationscript
This can be done in two ways:
-
Using QUERIES in the grammar of the incoming edi file.
# Example: botskey in a simple csv grammar structure = [ {ID:'LIN',MIN:1,MAX:99999, QUERIES:{ 'frompartner': ({'BOTSID':'LIN','AccountCode':None}), 'topartner': ({'BOTSID':'LIN','CustomerCode':None}), 'botskey': ({'BOTSID':'LIN','PurchaseOrderNo':None}), }, } ] -
In your mapping script.
out.ta_info['botskey'] = inn.get({'BOTSID':'LIN','PurchaseOrderCode':None})
[Home]
- Get started with bots
- Guide for bots-monitor
- Configuration
- How to debug
- Plugins
- Deployment and usage
- Advanced Deployment
- Troubleshooting FAQ
- Overview
- Changes and migrate
- Tutorials
- New to python?
- External reference links
- Useful Tools