QB Desktop | Create new request after getting response in quickbook desktop


How to Create new request after getting response in quickbook desktop

For creating new request in quickbook we need to add this request to queue.

For example:

You want to get customer information which are related to invoice. For this first you will create invoice request function and send xml to web connector.

Function Invoice_request(requestID,user, action, extra, &$err){
<?xml version="1.0" encoding="utf-8"?>
		<?qbxml version="' . $version . '"?>
			<QBXMLMsgsRq onError="stopOnError">

return xml;

After processing request web connector will send back response xml.

Function Invoice_response($requestID, $user, $action, $ID, $extra, xml){

Here you will parse xml and get all related customer list_id in array.
	Array customer_id={list_id};
	Now create new request using queue and send customer_id array.

When this request will execute by web connector we can get customer list in response method by parsing xml.

Leave a Reply

Your email address will not be published. Required fields are marked *

Share on:
Share this...
Share on Facebook
Pin on Pinterest
Tweet about this on Twitter
Share on LinkedIn
Website security
Contact Us