Skip to content

Instantly share code, notes, and snippets.

@awd
Created December 2, 2009 03:59
Show Gist options
  • Save awd/246918 to your computer and use it in GitHub Desktop.
Save awd/246918 to your computer and use it in GitHub Desktop.
module Salesforce
class LeadConvert
include DataMapper::Resource
# set the adapter
def self.default_repository_name
:salesforce
end
# standard fields
#property :id, String, :serial => true, :salesforce_id => true
property :account_id, String, :serial => true, :salesforce_id => true
property :contact_id, String, :serial => true, :salesforce_id => true
property :converted_status, String, :default => "Closed - Converted"
property :do_not_create_opportunity, Boolean, :default => false
property :lead_id, String, :serial => true, :salesforce_id => true
property :opportunity_name, String
property :overwrite_lead_source, Boolean, :default => false
property :owner_id, String, :serial => true, :salesforce_id => true
property :send_notification_email, Boolean, :default => false
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment