How to get list of customers, jobs, and employeers using Quickbooks QBFC (8.0 SDK) -
I have been given a painful task to write C # applications to sync employee time entries in a separate database with QuickBooks. I <<>
I'm trying to give priority to basic tasks, such as a list of customers, jobs for each customer, then employees are reading SDK documentation, but I have a little bit on the details Because the example which I see is very advanced for me at the moment: - P
Simple to keep things, I would like to request a code snippet which gives me the list of customers for the start of my This code has:
QBSessionManager session manager = new QBSessionManager (); IMsgSetRequest customerSet = session manager. CreateMsgSetRequest ("US", 8, 0); // // code here to get the list of customers. // session manager Open Connection 2 ("", "New App", Exconnection Type. CTLokal QBD); Session manager Basic session (string. Apt, eonomod.odd career); IMsgSetResponse Resp = SessionManager.DoRequests (customerSet); MessageBox.Show (Resp.ToXMLString ()); SessionManager.EndSession (); SessionManager.CloseConnection ();
Can someone fill out the "Code for getting the list of customers here" for me? Thanks so much in advance!
Victor
OK, it seems like I found the missing piece: />
ICustomerQuery clients = customerSet.AppendCustomerQueryRq ();
It produces all the data related to each customer, which is one step ahead, it should be very easy for customers to parse the XML, but it is difficult to parse the different jobs / jobs for each customer. Because there are no sub-nodes for each task - basically all basic customer information (address, billing address, shipping address, etc.), then this is a full property "FullName" Sector combines a colon, followed by job title (which themselves may be made by other colon with a sub-title, etc.). I am thinking that if someone is clever, then what can I do with the request query to get a better XML response (for example, specify what properties I want to return, and possibly a given customer's For each task can apply the creation of sub-nodes) ... comments are appreciated.