Quickbooks Sales rep Query

2019-09-20 05:07发布

问题:

I am using QuickBooks API to connect with my desktop QuickBooksand import the List id's of the sales reps from QuickBooks to my MySQL database.

Following is the xml code to query sales rep which is already there in QuickBooks but I am getting error 500 that this rep not found in QuickBooks . Even then when I tried adding new rep with same name it again showed me error that this name rep already exists...so i am totally confused why the initial search query didn’t work:

<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="2.0"?>
<QBXML>
<QBXMLMsgsRq onError="stopOnError">
<SalesRepQueryRq>   
<FullName>firstname lastname</FullName>                 
</SalesRepQueryRq>                                  
</QBXMLMsgsRq>
</QBXML>

Please help me to find out the problem

回答1:

There is absolutely no way that that Sales Rep exists in QuickBooks.

QuickBooks Sales Rep names are limited to 5 characters. You have wayyyyy more than 5 characters here:

  • firstname lastname

Are you positive that you've created a Sales Rep in QuickBooks, and not something else closely related like an Employee?