Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

How Stored Procedures & Joins work internally when we trying to Retrieve information through eConnect using DocType in eConnect_Out_Setup

Posted on by Microsoft Employee

Let say i am passing Doctype as"Customer", how this will hit econnect_out_Setup table and retrieve the information of Customer using joins

Is there any way to observe what are internal Joins written and  queries executed while retrieving information using econnect?

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How Stored Procedures & Joins work internally when we trying to Retrieve information through eConnect using DocType in eConnect_Out_Setup

    Thanks a lot .....

    Please provide any good online/offline/Books/Links resource regarding eConnect or Dynamics GP for Learning.

  • Verified answer
    Tim Wappat Profile Picture
    Tim Wappat 5,701 on at
    RE: How Stored Procedures & Joins work internally when we trying to Retrieve information through eConnect using DocType in eConnect_Out_Setup

    Funnily enough I have a post on that too...

    http://www.timwappat.info/post/2015/12/22/eConnect-Customer-Requester-Document-No-ShipToName-field

    See the section: "The document Updating the Transaction Requester for retrieve operations describes how to generate the stored procedures used by eConnect, following that guidance run the following SQL."

    That linked eConnect documentation is well worth a read for naming conventions and understanding. 

    You must use the eConnectOutCreate procedure to generate the requester stored procedures if you are changing the rows in the setup table.

    For other readers benefit:

    The requester is a subsystem of eConnect that is helpful for basic data tracking and retrieval operations, importantly it can be customised by convention in the configuration (setup) table. 

    The custom XML nodes is a different approach in eConnect, departing from a "by configuration". It is a raw access to SQL stored procedures, allows both retrieval and updating of data in the database, permitting much more imaginative SQL in the stored procedures than that allowed by the simpler requester system. 

    Tim.

    
                          
  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How Stored Procedures & Joins work internally when we trying to Retrieve information through eConnect using DocType in eConnect_Out_Setup

    Ho okay Thank you.

    I have a question for you.

    We are manually writing procedures while creating custom XML nodes as referred by you in this link below community.dynamics.com/.../206876

    But for retrieving as you said(For each row in the out table there is a stored procedure generated) may i know how these procedures are generated automatically while we insert a row into eConnect_Out_Setup?

    I want to just know is there any tool to generate these stored procedures or this is also an internal mechanism?

    If there is a tool to generate these procedures while retriving,is there a way to generate procedures while inserting as well?

    Thanks

    Sandeep K

  • Tim Wappat Profile Picture
    Tim Wappat 5,701 on at
    RE: How Stored Procedures & Joins work internally when we trying to Retrieve information through eConnect using DocType in eConnect_Out_Setup

    If I understand you correctly, then you wish to see what SQL is generated by eConnect  when using the eConnect_Out_Setup table to fetch data via a eConnect requester doc.

    For each row in the out table there is a stored procedure generated, so for your example,

    taRequesterCustomer1 is an example of the procedure that relates to the first customer row in the setup table.

    The catch is that these procedures (and the procedure that generates them) are encrypted.

    Using SQL profiler won't help either.

    If you know how to decrypt stored procedures then this is the only option I can see you having.

    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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans