Method: Frodo::Concerns::API#destroy

Defined in:
lib/frodo/concerns/api.rb

#destroy(*args) ⇒ Object

Public: Delete a record.

entity_set - The set the entity belongs to id - The Dynamics primary key ID of the record.

Examples

# Delete the lead with id  "073ca9c8-2a41-e911-a81d-000d3a1d5a0b"
client.destroy('leads',  "073ca9c8-2a41-e911-a81d-000d3a1d5a0b")

Returns true if the entity was successfully deleted. Returns false if an error is returned from Dynamics.



174
175
176
177
178
# File 'lib/frodo/concerns/api.rb', line 174

def destroy(*args)
  destroy!(*args)
rescue *exceptions
  false
end