c# - QuickBooks Intuit IPP Issue Check -


i attempting issue check vendor through intuit.ipp api (interop.qbfc12) using following code:

    imsgsetrequest messageset = session.createmsgsetrequest("us", 7, 0);     icheckadd cheque = messageset.appendcheckaddrq();     cheque.accountref.listid.setvalue(vendor.listid.getvalue());     cheque.accountref.fullname.setvalue("myaccountname");     cheque.txndate.setvalue(datetime.today);      imsgsetresponse responseset = session.dorequests(messageset);     iresponse response = responseset.responselist.getat(0);     responsetype = (enresponsetype)response.type.getvalue();     if (responsetype == enresponsetype.rtcheckaddrq)         returnmessage = response.statusmessage; 

the resulting response.statusmessage = "object 80000005-1374598713 specified in request cannot found. " object id specified listid pulled vendor.

i'm coding pretty blind i'm not finding ipp documentation helpful or date version 12.

what missing?

this:

cheque.accountref.listid.setvalue(vendor.listid.getvalue()); cheque.accountref.fullname.setvalue("myaccountname"); 

is what's causing problem.

the accountref node specifying account, not vendor. account quickbooks chart of accounts (an "account" object). vendor vendor list (a "vendor" object) , not interchangable objects.

since you're setting accountref/fullname:

cheque.accountref.fullname.setvalue("myaccountname"); 

you don't need set accountref/listid.

you should either set listid or fullname - there's no reason set both (it's alternative ways reference same object - both "foreign keys" of sorts quickbooks).

what meant set accountref meant to, set payeeentityref. example:

cheque.payeeentityref.listid.setvalue(vendor.listid.getvalue()); 

also, regarding this:

i'm coding pretty blind i'm not finding ipp documentation helpful or date version 12.

ipp entirely different api you're using. ipp docs aren't going useful you, because it's not anywhere close api you're using.

what should using reference quickbooks osr:

and quickbooks sdk downloadable .exe, has bunch of relevant pdf documentation.


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -