web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

eConnect or Base Tables?

(0) ShareShare
ReportReport
Posted on by

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

  • Suggested answer
    soma Profile Picture
    24,416 on at

    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!!!

  • Community Member Profile Picture
    on at

    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

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans