lib/zoho/crm/models/concerns/persistence.rb
def save
        path = persisted? ? update_path : create_path
        self.class.post_raw(path, xmlData: to_zoho_params) do |data, response|
          if response.status == 200
            self.id = Nokogiri::XML.parse(data).css('FL[val=Id]').text
            reload
            clear_changes_information
            self
          end
        end
      end
# Save the record. This has to be sent in XML to the correct API path
Save the record. This has to be sent in XML to the correct API path
Save the record . This has to be sent in XML to the correct API path
def save
        path = persisted? ? update_path : create_path
        self.class.post_raw(path, xmlData: to_zoho_params) do |data, response|
          if response.status == 200
            self.id = Nokogiri::XML.parse(data).css('FL[val=Id]').text
            reload
            clear_changes_information
            self
          end
        end
      end
def save path = persisted? ? update_path : create_path self . class . post_raw ( path , xmlData : to_zoho_params ) do | data , response | if response . status == 200 self . id = Nokogiri :: XML . parse ( data ) . css ( 'FL[val=Id]' ) . text reload clear_changes_information self end end end
Save the record.
Save the record .