Method: Restforce::Concerns::API#update
- Defined in:
- lib/restforce/concerns/api.rb
#update(*args) ⇒ Object
Public: Update a record.
sobject - String name of the sobject. attrs - Hash of attributes to set on the record.
Examples
# Update the Account with Id '0016000000MRatd'
client.update('Account', Id: '0016000000MRatd', Name: 'Whizbang Corp')
Returns true if the sobject was successfully updated. Returns false if there was an error.
303 304 305 306 307 |
# File 'lib/restforce/concerns/api.rb', line 303 def update(*args) update!(*args) rescue *exceptions false end |