Ruby/Highrise API - Not saving phone number? -


so i've been using same block of code 9 months , has stopped saving phone number highrise when new lead generated... idea things going sideways? never throws error , happily saves contact except telephone number.

# create contact highrise supplied information @person = highrise::person.new(first_name: @lead.first_name.humanize,                                last_name: @lead.last_name.humanize,                                background: "automatically created lsal app",                                contact_data: { email_addresses: [ { address: @lead.email, location: "home" } ],                                                phones: [ { number: @lead.phone, location: "mobile" } ] } ) @person.save # save contact 

@person = highrise::person.create(:company_name => account.company, :first_name => account.first_name, :last_name => account.last_name, :contact_data => { :email_addresses => [{ :email_address => {:address => account.email, } }], :addresses => [{:address => {:city => account.city, :location =>"work", :state => account.state, :country => account.country,:street => "#{account.address1} #{account.address2}" , :zip => account.zip} }], :phone_numbers => [{ :phone_number => { :number => number, :location =>"work"}}] } ) 

hope helpful


Comments