首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ruby/Highrise不保存电话号码吗?

Ruby/Highrise不保存电话号码吗?
EN

Stack Overflow用户
提问于 2016-01-24 16:33:55
回答 1查看 47关注 0票数 1

所以我已经用了这段代码大约9个月了,当一个新的引线产生时,它突然停止了将一个电话号码保存到高地.知道事情是怎么发展的吗?我从来没有抛出一个错误,并愉快地保存与所有的联系,除了电话号码。

代码语言:javascript
复制
# 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
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-10-15 08:24:41

代码语言:javascript
复制
@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"}}] } )

希望能帮上忙

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34978352

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档