forked from eppye-bots/bots
-
Notifications
You must be signed in to change notification settings - Fork 2
EnvelopeScriptsExample
skilchen edited this page Feb 17, 2016
·
1 revision
bots/usersys/envelopescripts/edifact/edifact.py
This will affect all outgoing edifact documents. Add conditional logic if needed.
# Add some extra fields to the edifact envelope.
# reference: http://www.stylusstudio.com/edifact/40100/UNB_.htm
def envelopecontent(ta_info,out,*args,**kwargs):
out.put({'BOTSID':'UNB','S002.0008': 'PARTNER1'}) # Interchange sender internal identification
out.put({'BOTSID':'UNB','S003.0014': 'PARTNER2'}) # Interchange recipient internal identification
out.put({'BOTSID':'UNB','0029': 'A'}) # Processing priority code
out.put({'BOTSID':'UNB','0031': '1'}) # Acknowledgement request
[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