Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to find a customer in QB using ListID

Featured Replies

Hi,

 

I have the customer ListID in FM and wanna make sure that this customer does exist in QB. This is my approach:

PCQB_ZQuery("CustomerQueryRs/*/ListID";"Customer";"<ListID>" & $QBCustomerListID & "</ListID>";"")

Then I use "PatternCount" to search for the target ID.

Can anyone suggest any neater approach?

Edited by siroos12

Hi Siroos,

Using the native FM Books Connector functions, you can verify if a customer exists by executing the following functions:

 

PCQB_RqNew( "CustomerQuery" )

PCQB_RqAddFieldWithValue( "ListID" ; $QBCustomerListID )

PCQB_RqExecute

 

If the result of PCQB_RqExecute is 0, the customer exists in QuickBooks; otherwise, the customer does not exist. Using these functions ensures you don't need to worry about using a PatternCount to validate the results of the response; the plug-in will report error if the requested ListID is not found (you can further verify this by calling PCQB_SGetStatus immediately after the PCQB_RqExecute function call).

 

Hope this helps!

Chris Turner

  • Author
30 minutes ago, PCIPal said:

Hi Siroos,

Using the native FM Books Connector functions, you can verify if a customer exists by executing the following functions:

 

PCQB_RqNew( "CustomerQuery" )

PCQB_RqAddFieldWithValue( "ListID" ; $QBCustomerListID )

PCQB_RqExecute

 

If the result of PCQB_RqExecute is 0, the customer exists in QuickBooks; otherwise, the customer does not exist. Using these functions ensures you don't need to worry about using a PatternCount to validate the results of the response; the plug-in will report error if the requested ListID is not found (you can further verify this by calling PCQB_SGetStatus immediately after the PCQB_RqExecute function call).

 

Hope this helps!

Chris Turner

Awesome, Thank you!

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.