Okay I’ve been asking a few times about using the built-in EDI batching services but it seems no one’s really used it, so with a bit of tinkering I believe I have figured it out.
First I added the ISA/GS headers to the individual ST segment (for PO). Then I send the PO to TN with ISA/GS so that it has the sender/receiver. This is split in TN into 3 separate docs, one for X12, Group and 850. I have a rule on the 850 which puts it into a public queue. The queue calls the built-in EDI batch scheduled delivery service.
For the inputs to this batch service I could only get it to work by providing the sender and receiver ID (duns with qualifier 01). Based on the docs it should get it from the ISA header but it’s not doing that at this point.
The batch is sent to TN. Then I have a second rule on the batched X12 envelope, but the key is to use Extended criteria field ‘EDI Batch’ so put ‘EDI Batch equals none’. This is how TN differentiates between the individual envelopes for each txn and the actual batch. When the X12 is sent as a batch it will have the attribute EDI Batch set to ‘Interchange’.
On my personal experience, I have rules, which have none of the Extended criteria for the EDI Batch, then also it is working…
Thats why, it is not mentioned, otherwise would have done.
Regards.
Yes my post was for people wanting to use BUILT IN services not custom. If you send the txn with an ISA/GS then you have to differentiate between the individual txn envelope and the batch envelope using the extended criteria I mentioned.
yes i meant on this site I had asked how to differentiate between X12 batch and X12 transaction since they would look basically the same. Sorry I’m under extreme time pressures on this project and I feel the docs aren’t the greatest as I like to see a step by step process versus scattered explanations.
I did mention it in my first post to your original message:
“4. The batch process adds an attribute to the batch document that can be used to identify the batch X12. Keep in mind, the rules will be looking at X12 envelope, not 850s.”
Sorry I didn’t have the exact name listed nor did I describe how to use it in the rule. Next time I’ll try to provide a bit more guidance on how to gather the needed info. In any case, I’m glad you were able to work it out.