Jump to content

How to find a customer in QB using ListID


This topic is 2094 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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
Link to comment
Share on other sites

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

  • Like 1
Link to comment
Share on other sites

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!

Link to comment
Share on other sites

This topic is 2094 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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