ruckus / quickbooks-ruby

Quickbooks Online REST API V3 - Ruby
MIT License
374 stars 302 forks source link

unable to read custom_values from Preferences object #473

Closed varun43in closed 5 years ago

varun43in commented 5 years ago

Hi, I'm trying to get a list of custom values. Here's my code

@items = service.query("Select * from Preferences")

<%= @items.entries[0].sales_forms.custom_fields %>

But this throws a noMethodError. Any ideas?

Thanks for your help!

ruckus commented 5 years ago

Hmm, what version are you running? This is working for me.

varun43in commented 5 years ago

0.6.6

In my Gemfile: gem "quickbooks-ruby", '0.6.6'

Gemfile.lock shows: quickbooks-ruby (0.6.6)

ruckus commented 5 years ago

Doh, I see what happened. I merged in a PR with support for Preferences/CustomFields but it never got released.

I just released 0.6.7 -- please give RubyGems time to update and then give that a shot.

varun43in commented 5 years ago

It works now. Thanks a lot!