Comments (7)
I debugged it little more and found out that in gems/rubyzoho-0.5.0/lib/zoho_api_field_utils.rb:73
70: def create_and_add_field_value_pair(field_name, module_name, n, record)
71: debugger if module_name == "Invoices"
72: k = ApiUtils.string_to_symbol(field_name)
73: v = n.text == 'null' ? nil : n.text
74: r = record.merge({ k => v })
75: r = r.merge({ :id => v }) if primary_key?(module_name, k)
In create_and_add_field_value_pair method, its just assigning the n.text to v if its not null. But in my case n is
<FL val='Product Details'><product no='1'><FL val='Product Id'>1496038000000671051</FL><FL val='Product Name'><![CDATA[AWS Core Service]]></FL><FL val='Unit Price'>1.0</FL><FL val='Quantity'>22.0</FL><FL val='Quantity in Stock'>-269.0</FL><FL val='Total'>22.0</FL><FL val='Discount'>0.0</FL><FL val='Total After Discount'>22.0</FL><FL val='List Price'>1.0</FL><FL val='Net Total'>22.0</FL><FL val='Tax'>0.0</FL></product></FL>
which gives n.text = nil and thus product_details value comes out to be nil everytimes.
from rubyzoho.
from rubyzoho.
Yeah will send the PR in some time.
from rubyzoho.
The same issue exists trying to get product_details from a Quote, which I just ran into.
from rubyzoho.
PR was integrated. Can you point to the master branch and try it?
from rubyzoho.
@amalc I tried on master and still not seeing Quote#product_detail records.
RubyZoho::Crm::Quote.first.product_details => nil
ZohoApi::Crm#related_records('Quotes', '{id}', 'Products') => 200
from rubyzoho.
@jheth Hmm. OK. Let take a look.I had this problem on our instance a couple of year ago and fixed it but I don't think it was in the Gem. Something, if I remember correctly, with permissions.
from rubyzoho.
Related Issues (20)
- NameError in creating a lead
- LoadError mime/types
- Proper method for retrieving records modified after HOT 3
- Missing fields.snapshot causes Passenger deployment issues HOT 5
- Data loss when saving Cases when no prior records exist HOT 6
- Cannot update custom fields if Lead initialized with parameters HOT 1
- Bulk Insert Fields HOT 4
- Duplicate Check
- Custom field names HOT 4
- How do I use related_records method HOT 3
- Unable to add number of employees HOT 5
- Thoughts on refactor to allow for other Zoho services HOT 5
- Need to Access Deals HOT 2
- Adding/receiving products in SalesOrders
- Find by related id doesn't work HOT 1
- "Can't modify frozen string" error if working with ActiveSupport::HashWithIndifferentAccess HOT 1
- How to set Task.related_to Lead.id ?
- Zoho api v2 released. HOT 6
- RubyZoho: Web service call failed with 400 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rubyzoho.