mattbeedle / capsule_crm

Ruby CapsuleCRM API consumer
MIT License
26 stars 16 forks source link

How do you use/add/create CapsuleCRM::CustomFields now? #63

Closed ryanbooker closed 10 years ago

ryanbooker commented 10 years ago

There used to be a CapsuleCRM::CustomFields.create method. Looking at some old code here, it appears that it worked as follows (It would be very old code):

cfs = [{label: 'MyField', text: 'Some field contents'}, {label: 'MyOtherField', text: 'Some other field contents'}]
cfs.each do |cf|
    CapsuleCRM::CustomFields.create({party: myParty}.merge(cf)
end

What is the current way to create custom fields? Cheers.

ryanbooker commented 10 years ago

Found it.