Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted (edited)

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
Posted

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
Posted
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!

This topic is 2299 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.