Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

eConnectOut query by columns in child table

Posted on by Microsoft Employee

I'm configuring eConnectOut for searching GL Accouns by description or by account number.

The account number column is only present in GL00105 and account description in GL00100.

I don't want to deal with 2 different XML result formats for when I query by account number or by account description.

From what I understood if I configure eConnect out to query the 2 tables with a join I can only search by columns in the main table and not the child table.

To query the child table I need to create a second eConnect out content type where the main-child relation is the opposite of the first configuration so that I can query from the second table.

I'm find with creating 2 content types but I don't want to deal with 2 different XML structures. From what I understood the main table has to be the outer tag in the XML result and the child table should be a nested tag.

e.g.

<GL_Accout>

   <Details></Details>

</GL_Account>

when I need to search by a GL_Account filed

and

<Details>

  <GL_Account></GL_Account>

</Details>

when I need to search by a Details field

Is there a way to keep the same output XML structure but to query by fields from the main or the child table?

*This post is locked for comments

  • Tim Wappat Profile Picture
    Tim Wappat 5,701 on at
    RE: eConnectOut query by columns in child table

    That is a pity, I had the feeling that might be the issue.

    I should imagine your alternative approach should work just fine though.

    Tim.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: eConnectOut query by columns in child table

    Hi Tim,

    Unfortunately modifying the database is not an option for me, but I'll keep this in mind if I need this in the future, this is a good tip!

    I'll go with just downloading the whole list of accounts and querying in memory. The list of accounts for a company isn't gonna be huge that it is a problem doing simple in-memory searches on the .NET side I suppose.

    Thanks,

    Aleksey

  • Verified answer
    Tim Wappat Profile Picture
    Tim Wappat 5,701 on at
    RE: eConnectOut query by columns in child table

    Hi,

    Do you have control over the database, if so you could just create a view over the two tables.

    Here is a post that might help.

    http://www.timwappat.info/post/2015/09/09/eConnect-Requester-Documents-sourced-from-Custom-table-or-Views

    tim

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans