Object Functions
Property values can be accessed directly or by using a generic set or get method.
- A
getfunction for each field in the object. For example, an Account object has aget("Name")function. This can be used instead ofobject.Field(for example,account.Name). - A
setfunction for each field in the object. For example, an Account object has aset("Name)function. This can be used instead ofobject.Field = value.
For example, you can get the value of the Name field from an Account using either of these methods:
account.get("Name")account.Nameaccount["Name"]
You can set the value of the Name field from an Account using either of these methods:
account.set("Name", "MyAccount");account.Name = "MyAccount";account["Name"]="MyAccount";
See Also