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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

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

(0) ShareShare
ReportReport
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

I have the same question (0)
  • Suggested answer
    sandipdjadhav Profile Picture
    18,335 on at

    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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Dan Liebl Profile Picture

Dan Liebl 2

#2
Shravan Attelli Profile Picture

Shravan Attelli 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans