所以我已经用了这段代码大约9个月了,当一个新的引线产生时,它突然停止了将一个电话号码保存到高地.知道事情是怎么发展的吗?我从来没有抛出一个错误,并愉快地保存与所有的联系,除了电话号码。
# create a contact Highrise from supplied information
@person = Highrise::Person.new(first_name: @lead.first_name.humanize,
last_name: @lead.last_name.humanize,
background: "automatically created by LSAL app",
contact_data: { email_addresses: [ { address: @lead.email, location: "Home" } ],
phones: [ { number: @lead.phone, location: "Mobile" } ] } )
@person.save # save contact发布于 2016-10-15 08:24:41
@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"}}] } )希望能帮上忙
https://stackoverflow.com/questions/34978352
复制相似问题