module Restforce::Concerns::API

def create(*args)

Returns false if something bad happens.
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(*args)
  create!(*args)
rescue *exceptions
  false
end