Productive Computing, Inc. Support Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

SMF - Just Installed!

Pages: [1]   Go Down

Author Topic: FYI: two typos in Developer Guide  (Read 1568 times)

pjreagan

  • Member
  • *
  • Posts: 48
FYI: two typos in Developer Guide
« on: August 11, 2014, 04:37:08 PM »

It would appear that on page 16 of the "March 18, 2014" version of the Developers_Guide_FM_BooksConnectorOnline document there are two typos:
Instead of...
PCQO_RqAddFieldWithValue("DetailType"; "SalesLineItemDetail")

They should read...
PCQO_RqAddFieldWithValue("DetailType"; "SalesItemLineDetail")

The demo file is correct!

- Edited to remove an errant quote
« Last Edit: August 11, 2014, 04:54:30 PM by pjreagan »
Logged

Jerel Malong

  • Global Moderator
  • Member
  • *****
  • Posts: 97
Re: FYI: two typos in Developer Guide
« Reply #1 on: August 12, 2014, 07:51:41 AM »

Thank you for pointing this out. I will pass this information along to our products team.
Logged

pjreagan

  • Member
  • *
  • Posts: 48
Re: FYI: two typos in Developer Guide
« Reply #2 on: August 12, 2014, 12:14:00 PM »

Great!

Also: on page 15 going into page 16, the CustomerRef and BillingAddress information is included before the line information.  'Not sure how much it matters because I haven't tried it, but the ESR shows that this customer information should come after the line information. 

Maybe it does work before too?
Logged

pjreagan

  • Member
  • *
  • Posts: 48
Re: FYI: typos in Developer Guide
« Reply #3 on: August 14, 2014, 05:16:27 PM »

One more typo on page 15 apparently...
    PCQO_RqAddFieldWithValue("CustomerRef::name"; "Bob Jones")

In my testing, it seems that name references to related elements simply do not work.  Instead the Customer's Id needs to be referenced.  The ESR is vague about this detail.  But the PC demo file does use an Id reference.  So, instead the Developer's Guide should read something like:
    PCQO_RqAddFieldWithValue("CustomerRef::Value"; "11")  // Or whatever the QB Id is for Bob Jones.

For developer readers:
- make sure that "Value" is capitalized
- the returned QB error is vague if you make the mistake of referencing a name rather than an Id.  I've been getting:
    "Ids service endpoint was not found"

Logged
Pages: [1]   Go Up