Hello,
I have developed a ROR application and connected it with Zoho to save the Leads. I have created several fields in Zoho whose screenshot is as follows:
I am creating and updation the records using Zoho API in my application and I am able to save the data like name , email etc.
But while saving the fields present in my second screenshot such as Monthly Electric Bill, Vehicle Fuel, Gas, Monthly Vehicle Fuel Bill etc, I am getting below error:
Message: A Zoho Lead just failed to save<br> Exception: undefined method `monthly_electric_bill' for #<RubyZoho::Crm::Lead:0x00000006fea1e0>
I have checked in Zoho application and found that the field "Monthly Electric Bill " is present, but while accessing the same using Zoho API in rails console, I didn't get the field to which I can save the data.
Below are the response from Zoho API calling from Rails console:
=> [#<RubyZoho::Crm::Lead:0x0000000#######
@created_by="XYZXYZXYZ",
@created_time="2017-03-29 00:33:52",
@email_opt_out="false",
@fields=
[:module_name,
:leadid,
:id,
:smownerid,
:lead_owner,
:first_name,
:last_name,
:email,
:smcreatorid,
:created_by,
:modifiedby,
:modified_by,
:created_time,
:modified_time,
:email_opt_out,
:last_activity_time,
:venture_partner],
@first_name="Anonymous",
@id="995316000003202009",
@last_activity_time="2017-03-29 00:33:52",
@last_name="N/A",
@lead_owner="XYZXYZXYZ",
@leadid="995316000003######",
@modified_by="XYZXYZXYZ",
@modified_time="2017-03-29 00:33:52",
@modifiedby="995316000000065001",
@module_name="Leads",
@smcreatorid="99531600000######",
@smownerid="99531600000######",
@venture_partner="XYZ">]
Can anyone tell me why I am not getting the fields while accessing Leads via API?