handlers/kinetic_request_submission_close_all_open_v1/handler/init.rb
# Updates the value of the 'Request_Status' and 'ValidationStatus' fields on
# the specified Kinetic Request base record.
#
# This is a required method that is automatically called by the Kinetic Task
# Engine.
#
# ==== Returns
# An Xml formatted String representing the return variable results.
Updates the value of the 'Request_Status' and 'ValidationStatus' fields on
the specified Kinetic Request base record.

This is a required method that is automatically called by the Kinetic Task
Engine.

Returns
An Xml formatted String representing the return variable results.
Updates the value of the ' Request_Status ' and ' ValidationStatus ' fields on the specified Kinetic Request base record . This is a required method that is automatically called by the Kinetic Task Engine . Returns An Xml formatted String representing the return variable results .
def execute()
	query = '\'OriginatingID\' = "' +@parameters['submission_id'] + '" AND \'Request_Status\' = "Open"'
    entries = @@remedy_forms['KS_SRV_CustomerSurvey_base'].find_entries(
      :all,
      :conditions => [query],
      :fields => [179]
    )
    if entries.nil?
      raise(%|An open entry can't be found in KS_SRV_CustomerSurvey_base for (Query)="#{query} "|)
    end
	entries.each do |entry|
		if (entry[179])
			entry.update_attributes!(@field_values)
		end
	end
    return "<results/>"
  end
def execute ( ) query = '\'OriginatingID\' = "' + @parameters [ 'submission_id' ] + '" AND \'Request_Status\' = "Open"' entries = @@remedy_forms [ 'KS_SRV_CustomerSurvey_base' ] . find_entries ( :all , :conditions => [ query ] , :fields => [ 179 ] ) if entries . nil? raise ( %|An open entry can't be found in KS_SRV_CustomerSurvey_base for (Query)="#{query} "| ) end entries . each do | entry | if ( entry [ 179 ] ) entry . update_attributes! ( @field_values ) end end return "<results/>" end
Updates the value of the 'Request_Status' and 'ValidationStatus' fields on
the specified Kinetic Request base record.
Updates the value of the ' Request_Status ' and ' ValidationStatus ' fields on the specified Kinetic Request base record .
# Retrieve the entry for the Kinetic Request submission that is being # updated and don't return any field values. # Check for existing KS_SRV_Helper entry. # Build up a list of all request ids returned # Update customer survey base entry and specify the fields we want to return # Return an empty results String