Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

How can I Create/Post Invoices using .Net & eConnect

Posted on by 40

Our client want to integrate GP 2010 with their desktop application to post Invoice into GP using eConnect.
 
I dont have any idea about what should be the best method and how to configure the eConnect to use with a client/server desktop application.
 
I've Dynamics GP 2010 installed on a server and now going to install the eConnect on the same server.
The Database server is different then the GP server.
 
I've a sample application where I've used the reference for eConnect DLLs and didnt installed the eConnect on my development machine.
 
The questions are:
 
1. How can I configure the eConnect on client machine and do I need to install anything of eConnect on the client machine?
2. Can you please provide me the sample XML to create Invoice in GP. It is not available in the Sample XML folder of eConnect SDK or I am unable to locate it?
3. You guideline on what would be the best/simple method to integrate with the eConnect so that there should not be much configuration on client machine. We just configure the GP Server & eConnect on the server and include the DLLs in our application and things just work.
 
 
The function code is like:
 
private void ExportInvoiceToGP()
{
   eConnectMethods eConnect = new eConnectMethods();
   XmlDocument xmlDoc = null;
   string conGP = string.Empty;
   bool status = false;
   string filePath = string.Empty;
 
try
{
   xmlDoc =
new System.Xml.XmlDocument();
   conGP = Properties.
Settings.Default.GPConnectionString;
   filePath =
@"E:\TestProjects\eConnectExample\eConnectExample\XML\SampleInvoice.xml";
   xmlDoc.Load(filePath);
 
   //status = eConnect. CreateEntity(conGP, xmlDoc.OuterXml);
   string result = eConnect.CreateTransactionEntity(conGP, xmlDoc.OuterXml);
}
catch (Exception ex)
{
   EventLog eLog = new EventLog("Application", ".", "eConnectExample");
   eLog.WriteEntry(ex.Message);
}
finally
{
   eConnect.Dispose();
}
}

Thanks in advance & any kind of help will be highly appreciated.

*This post is locked for comments

  • Suggested answer
    sandipdjadhav Profile Picture
    sandipdjadhav 18,265 on at
    Re: How can I Create/Post Invoices using .Net & eConnect

    I don't think you can post transaction using eConnect.

    1. How can I configure the eConnect on client machine and do I need to install anything of eConnect on the client machine?

    You need to install eCOnnect client on each machine and then do MSDTC setting – This I was doing on GP9.0 and 10 eConnect don’t know about 2010 we need to do it or not.

    2. Can you please provide me the sample XML to create Invoice in GP. It is not available in the Sample XML folder of eConnect SDK or I am unable to locate it?

    msdn.microsoft.com/.../bb625169.aspx

    3. You guideline on what would be the best/simple method to integrate with the eConnect so that there should not be much configuration on client machine. We just configure the GP Server & eConnect on the server and include the DLLs in our application and things just work.

    I will recommend to use Dynamics GP Web Service; Install WS on web Server and then refer web reference. If not then create custom web service using eConnect – I do lot so we don’t have to worry anything on client machine

    Here is one example about creating web service using eConnect that may help you.

    sandipdjadhav.blogspot.com/.../next-document-number-web-service-using.html

    Let me know how it goes.

    Thanks

    Sandip

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans