module Restforce::Concerns::API
def create!(sobject, attrs)
Returns the String Id of the newly created sobject.
# => '0016000000MRatd'
client.create!('Account', Name: 'Foobar Inc.')
# Add a new account
Examples
attrs - Hash of attributes to set on the new record.
sobject - String name of the sobject.
Public: Insert a new record.
def create!(sobject, attrs) api_post("sobjects/#{sobject}", attrs).body['id'] end