module NetSuite::Actions::Upsert::Support

Public Instance Methods

upsert(credentials={}) click to toggle source
# File lib/netsuite/actions/upsert.rb, line 72
def upsert(credentials={})
  response = NetSuite::Actions::Upsert.call([self], credentials)

  @errors = response.errors

  if response.success?
    @internal_id = response.body[:@internal_id]
    true
  else
    false
  end
end