To cut a long request short my client has been using Quickfile sucessfully for a number of years, however they wish to be able to feed the raw invoice and client data out into a basic self built CRM solution (which will be written in Access2007). This is so that they can effecively market new products, do some long overdue data cleansing and attempt to get some “permissibility to contact” informtion.
The existing backups aren’t quite good enough becase
Some companies have changed name and therefore Client Name doesn’t match on the Sales_Invoice.csv AND the Client_Ledger.csv.
Some companies have multiple contacts - the client_ledger.csv only reflects these.
Although I’m a pretty reasonable coder in VB, VBA, Access, Java, I haven’t played with XML queries before and just need a little hand holding to tell me where I’m going wrong. Once I’ve set an extract of one or more fields from a single table, I’ll know how to replicate for other tables etc.
1.I have created a completely new quickfile instance for test. I don’t expect to have more than a couple of clients OR invoices in which to test this.
2.I’ve created my “APP” and got an AppID
3.I’ve done the API Sandbox Test - and it doesn’t work. I get an INVALID Client ID, even if I use different ClientIDs, create a Client first with a clientID etc.
Extract the full Invoice table with IDs (so they now link)
Extract the full Item table with IDs
Finally - if anyone has any idea -
How do I create the MD5 automatically based upon additional submissions
Is it possible to push one of these data requests out from a tool which only runs VBA (i.e. Access).
I know this is loads of questions, but i’m sure just knowing the basics of extracting a full extract of ItemID, ItemName and NominalCodes would pretty much allow me to answer all further questions.
Edit: The reference you would need from the API can be found from a ‘Client_Search’ request. Example result would be:
<?xml version="1.0" encoding="utf-8"?>
<Client_Search>
<Header>
<MessageType>Response</MessageType>
<SubmissionNumber>**Submission Number Goes Here**</SubmissionNumber>
</Header>
<Body>
<RecordsetCount>**Number of Clients Found**</RecordsetCount>
<ReturnCount>**How many have been returned this time**</ReturnCount>
<Record>
<ClientID>**** THIS IS THE ID YOU NEED ****</ClientID>
<ClientCreatedDate>12/10/2013</ClientCreatedDate>
<CompanyName>**Company Name**</CompanyName>
Thanks very much for that. I’ve been playing this morning and have made great headway. I had already worked out by finding out the quickfile ClientID or InvoiceID I could extract the details, however is there a way to pull out a list of all the ID’s - basically like a
For Each ClientID in [my account]
… Run XML to pull for that ClientID
… For Each InvoiceID in [That ClientID] within DateRange
… Run XML to pull for that InvoiceID
… Next
Next
Sorry for being a muppet, i’m only just starting to play with soap/xml driven queries!
Just wanted to say, that after much playing about I’ve managed to create an Access 2010 database with extracts the entire Client and Invoice tables along with multiple contact and invoice line items.