使用rforcegem在我的销售力量数据库中制作记录。
制作部队文件记录的例子有:
opportunity = [
:type, Opportunity ,
:accountId, account_id,
:amount, 10.00 ,
:name, Fakey McFakerson ,
:closeDate, 2008-07-04 ,
:stageName, Closed Won
]
binding.create :sObject => opportunity
销售商编号create(
>)允许一劳永逸地制造多个物体,但我为实现这一目标而奋斗。 我听了以下呼吁:
binding.create :sObject => array_of_opportunities
Where array_of_opportunities
is an array of arrays like opportunity
in the example above.
but that throws an error:
NoMethodError (undefined method `to_sym for #<Array:0x00000004ba5488>)
我感谢任何帮助。