create_cloudobject
create_cloudobject creates a new cloud object of the specified type.
There are three forms of the create_cloudobject statement. The simplest has only one argument - the type of the new object
Another form has two arguments, the type and an initial identifier to set for the object (the object's __id field)
Finally the third form has the type followed by any number of name / value pairs for initial values to set in the object
Constant strings are best!
You can pass any value for the type, but whenever possible, use a constant string (e.g. "Person") When you do so, Exotool is able to operate more efficiently and produce better, faster. more secure code.
Formats:
create_cloudobject(type)
create_cloudobject(type, identifier)
create_cloudobject(type, name1, value1, name2, value2, name3, value3, ....)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| type | string | The type of of the object |
Returned Value:
| Type | Description |
|---|---|
| cloudobject | Return value will be the newly created cloudobject |
Examples
new_application = create_cloudobject("Application")
config = create_cloudobject("configuration", "the_config")
address = create_cloudobject("address", "street",street, "state",state, "number",house_number, "zip", zipcode)