# EDI Functional Acknowledgments

**URL:** <https://techcommunity.softwareag.com/t/edi-functional-acknowledgments/107944>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [January 24, 2003, 11:28pm UTC](https://techcommunity.softwareag.com/t/edi-functional-acknowledgments/107944 "2003-01-24T23:28:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chris18](https://avatars.discourse-cdn.com/v4/letter/c/e8c25b/32.png) [@chris18](https://techcommunity.softwareag.com/u/chris18)\
**Post date:** [January 24, 2003, 11:28pm UTC](https://techcommunity.softwareag.com/t/edi-functional-acknowledgments/107944/1 "2003-01-24T23:28:09Z")

</div>

When I receive a 997 back in wm.  
I can pull by the Group doc id from the AK102 and the Set doc id from the AK202. Is there a way to get the doc id for the x12 envelope? Is this were the conversation scripts come in to play?

Thanks.

---

<div class="post-metadata">

**Author:** ![reamon](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@reamon](https://techcommunity.softwareag.com/u/reamon)\
**Post date:** [January 25, 2003, 1:27am UTC](https://techcommunity.softwareag.com/t/edi-functional-acknowledgments/107944/2 "2003-01-25T01:27:45Z")

</div>

I believe conversation scripts would help here but I haven’t done that.

Another way is to look up the related documents for your group doc. The envelope doc will be in the list.

---

<div class="post-metadata">

**Author:** ![chris18](https://avatars.discourse-cdn.com/v4/letter/c/e8c25b/32.png) [@chris18](https://techcommunity.softwareag.com/u/chris18)\
**Post date:** [January 25, 2003, 2:56am UTC](https://techcommunity.softwareag.com/t/edi-functional-acknowledgments/107944/3 "2003-01-25T02:56:34Z")

</div>

Rob,

What services are you using for this?  
I’ve tried wm.tn.query:createDocumentQuery, wm.tn.query:documentQuery, and wm.tn.doc:getEvents.  
But these all relate to the Group how do I make that connection back to the X12 Envelope?  
Thanks.

---

<div class="post-metadata">

**Author:** ![reamon](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@reamon](https://techcommunity.softwareag.com/u/reamon)\
**Post date:** [January 25, 2003, 4:03am UTC](https://techcommunity.softwareag.com/t/edi-functional-acknowledgments/107944/4 "2003-01-25T04:03:13Z")

</div>

Take a look at wm.tn.doc:view. Set getRelated to true. Loop over the returned list, then get each related doc (using wm.tn.doc:view). For each doc look at to see its type to determine when you have the envelope.

---

<div class="post-metadata">

**Author:** ![Chris\_L](https://avatars.discourse-cdn.com/v4/letter/c/ba9def/32.png) [@Chris\_L](https://techcommunity.softwareag.com/u/Chris_L)\
**Post date:** [January 27, 2003, 10:11pm UTC](https://techcommunity.softwareag.com/t/edi-functional-acknowledgments/107944/5 "2003-01-27T22:11:57Z")

</div>

Rob,

Once again, thanks for your help.

Chris

---

<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:04pm UTC](https://techcommunity.softwareag.com/t/edi-functional-acknowledgments/107944/6 "2021-04-02T15:04:59Z")

</div>


