Update Object Record

Update Object Record

The Update Object Record command updates information about an object in the database.

Update Object Record

of type object_type

with id object_id

with fields list_of_field_values

 

Result: Boolean - always true.


 

Arguments

Type

Description

object_type

String

The name of the object type to be added (e.g. Job}.

object_id

Integer or String

The unique object ID.

list_of_field_values

Record

List of object field labels and values. Record: {|field_name_1|: field_value_1, |field_name_2|: field_value_2, ...}

Example: Update the Created_By field of a catalogs object.

tell application "Virtual Ticket 8.0"
set natureCatalog to Retrieve Object Record¬
of type "Catalogs" with id "Nature"
set |Created_By| of natureCatalog to "Melanie Masters"

Update Object Record of type "Catalogs" with id "Nature"¬
with fields natureCatalog
end tell

 


Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.