Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

eConnect or Base Tables?

Posted on by Microsoft Employee

Hello,

Definitely a NEWBY question - but basically I have a question concerning if we should use eConnect (and web services) or go against the base tables?

Naturally if we want to have a "approved" method to get at the GP data, then eConnect is the way to go.  But we have also seen that some data (we think) is not available using web services.  (See SQL below with ugly UNION that I hope will be solved with web services.)  Also it seem that via the example Microsoft does not have anything against going against the base tables as they do have examples in their blogs and such.

Also cannot find any official guidance other than eConnect has some benefits like consistency of service definition.

Thanks - Allen

SELECT TOP 100 PERCENT rtrim(g0.actnumbr_3) + '-' + rtrim(g0.actnumbr_2) + '-' + rtrim(g0.actnumbr_4) + '-' + rtrim(g0.actnumbr_1) + '-' + rtrim(g0.actnumbr_5) as [AccountCode],
     g0.actnumbr_1, g0.actnumbr_2, g0.actnumbr_3, g0.actnumbr_4, g0.actnumbr_5,
     g1.CRDTAMNT, g1.DEBITAMT, g1.perdblnc, periodid, g1.year1, 
     (CASE WHEN g0.pstngtyp = 0 THEN 'B' ELSE 'I' END) AS Posting_Type, 
     g0.tpclblnc AS Typical_Balance, g1.actindx,
     $(QUERY_GP_Account) as [AP_Account], 
     $(QUERY_GP_Level)  as [AP_Level]
         FROM  gl00100 AS g0 
             INNER JOIN gl10110 AS g1 ON g0.actindx = g1.actindx 
         WHERE g1.year1 >= $(DATE_QueryBeginYear) AND g1.year1 <= $(DATE_QueryEndYear)  
UNION 
SELECT TOP 100 PERCENT rtrim(g0.actnumbr_3) + '-' + rtrim(g0.actnumbr_2) + '-' + rtrim(g0.actnumbr_4) + '-' + rtrim(g0.actnumbr_1) + '-' + rtrim(g0.actnumbr_5) as [AccountCode],
    g0.actnumbr_1, g0.actnumbr_2, g0.actnumbr_3, g0.actnumbr_4, g0.actnumbr_5,
    g1.CRDTAMNT, g1.DEBITAMT, g1.perdblnc, periodid, g1.year1, 
    (CASE WHEN g0.pstngtyp = 0 THEN 'B' ELSE 'I' END) AS Posting_Type, 
    g0.tpclblnc AS Typical_Balance, g1.actindx,
    $(QUERY_GP_Account) as [AP_Account], 
    $(QUERY_GP_Level)  as [AP_Level]
        FROM gl00100 AS g0 
            INNER JOIN  gl10111 AS g1 ON g0.actindx = g1.actindx 
        WHERE g1.year1 >= $(DATE_QueryBeginYear) AND g1.year1 <= $(DATE_QueryEndYear) 
           ORDER BY  [AccountCode], g1.year1, g1.periodid

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: eConnect or Base Tables?

    Hi Allen,

    Having used GP for a while, I would say the following: If it’s available use either eConnect or the stored procedures for creating Customers, Suppliers, Invoices, journals etc. as this ensures data integrity, and is easy.  However there will be some things that eConnect can’t do and in this case you have no choice but to directly access the tables. For reporting you can access the tables directly (we do) but be aware that (in our case) the default settings on Sql Server lock records even when you’re just doing a select, which can lead to deadlocks and timeouts. We have various routines that the users run at period end to extract data from Gp and stick it into our own database that is then used for more complicated reporting.

    Tim

  • Suggested answer
    soma Profile Picture
    soma 24,406 on at
    RE: eConnect or Base Tables?

    Normally most of the GP integration are using eConnect for integrating their own outside data to GP. eConnect having some specific set of stored procedures in GP databases. These are the base of the eConnect integration. Those procedures are used to insert and update the data from input parameters to GP databases. These are very powerful procedures for integration.

    Note: We can use those procedures to integrate our data to GP without eConnect applications.

    Hope this helps!!!

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