# Access X12 Envelope, including content

**URL:** <https://techcommunity.softwareag.com/t/access-x12-envelope-including-content/110217>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [November 4, 2010, 8:08pm UTC](https://techcommunity.softwareag.com/t/access-x12-envelope-including-content/110217 "2010-11-04T20:08:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Don\_Duncan](https://avatars.discourse-cdn.com/v4/letter/d/e9c0ed/32.png) [@Don\_Duncan](https://techcommunity.softwareag.com/u/Don_Duncan)\
**Post date:** [November 4, 2010, 8:08pm UTC](https://techcommunity.softwareag.com/t/access-x12-envelope-including-content/110217/1 "2010-11-04T20:08:39Z")

</div>

[SIZE=2]I would like to generate one ‘Alert’ email for each 850 Envelope received from a specific customer,  
containing (for example) the PO# & $Value of each PO, in the body of the email.

> Currently each PO in an Envelope received is sent to TN & processed via a processing rule when an X12 4010 850 is received.  
> I have created an additional rule, executing a new email ‘Alert’ service, when an X12 envelope is received.  
> This new service calls wm.b2b.edi: envelopeProcess, which returns only the envelope segments.
> 
> > Is there any way to access the content detail (ie: the actual PO detail)?  
> > (we are running IS: 6.5, TN:6.5 & EDI: 6.5.2)  
> > Any help would be appreciated.  
> > Thank you.  
> > [/size]

---

<div class="post-metadata">

**Author:** ![gupta\_r.17495](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gupta\_r.17495](https://techcommunity.softwareag.com/u/gupta_r.17495)\
**Post date:** [November 4, 2010, 9:54pm UTC](https://techcommunity.softwareag.com/t/access-x12-envelope-including-content/110217/2 "2010-11-04T21:54:22Z")

</div>

> [@Don Duncan;76075](#):
>
> [SIZE=2]
> 
> > This new service calls wm.b2b.edi: envelopeProcess, which returns only the envelope segments.
> > 
> > > Is there any way to access the content detail (ie: the actual PO detail)?  
> > > (we are running IS: 6.5, TN:6.5 & EDI: 6.5.2)  
> > > Any help would be appreciated.  
> > > Thank you.  
> > > [/size]

Yes to retrieve the transactional data (ST level) you need to invoke couple of parsing EDI module services in the following order:

wm.b2b.edi: envelopeProcess (outputs Values document)  
wm.b2b.edi.util:getEDIstring (extracts the ST level from ISA/GS map Values outputs EDIstring)  
 wm.b2b.edi:convertToValues (parse the incoming edidata against EDIFFSchema outputs Document and perform mapping from here)

Please review the EDIModule documentation and service documentation for more info:

HTH,  
RMG

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:06pm UTC](https://techcommunity.softwareag.com/t/access-x12-envelope-including-content/110217/3 "2021-04-02T15:06:04Z")

</div>

Closed on April 2, 2021, 3:06pm UTC


