I've been trying envelope scripting shown below x12.py in directory envelopescripts\x12
from datetime import datetime
import pytz
def envelopecontent(ta_info,out,*args,**kwargs):
tz_London = pytz.timezone('Europe/London')
datetime_London = datetime.now(tz_London)
out.put({'BOTSID':'ISA','ISA09':datetime_London.strftime('%y%m%d')})
out.put({'BOTSID':'ISA','ISA10':datetime_London.strftime('%H%M')})
out.put({'BOTSID':'ISA'},{'BOTSID':'GS','GS04':datetime_London.strftime('%Y%m%d')})
out.put({'BOTSID':'ISA'},{'BOTSID':'GS','GS05':datetime_London.strftime('%H%M')})
Unfortunately nothing changes so I'm not sure why it is not working.
Thanks,
David