0

In the QBSDK, I have an event setup using the sample EventSubscribe and EventHandler. I am subscribing to a Customer Modify event. When I get the event, I get the xml code below. It gives me the ListID which allows me to get the current customer name. However, I need the old name also. I am trying to update the name in Postgres and it needs the old name. Is there some way I can get the old name?

Thanks,

<?xml version="1.0" ?> 
<?qbxml version="3.0" ?> 
<QBXML> 
    <QBXMLEvents> 
        <DataEvent> 
            <CompanyFilePath>C:\Users\Public\Documents\Intuit\QuickBooks\Company Files\Shain Software.qbw</CompanyFilePath> 
            <HostInfo> 
                <ProductName>QuickBooks Pro 2012</ProductName> 
                <MajorVersion>22</MajorVersion> 
                <MinorVersion>0</MinorVersion> 
                <Country>US</Country> 
            </HostInfo> 
            <ListEvent> 
                <ListEventType>Customer</ListEventType> 
                <ListEventOperation>Modify</ListEventOperation> 
                <ListID>8000000A-1356377147</ListID> 
            </ListEvent> 
            <DataEventRecoveryTime>2013-03-01T15:16:35-05:00</DataEventRecoveryTime> 
        </DataEvent> 
    </QBXMLEvents> 
</QBXML>
4

1 回答 1

3

There is no way to get the old name.

You shouldn't need it.

Store the ListIDs in your database, and update based on that instead of the old name.

于 2013-04-01T12:38:23.500 回答