locate_cloudobject
locate_cloudobject Searches for a cloudobject with the given type and (if provided) identifier, returning it if found or FALSE if none found.
Only one cloudobject will be returned
If locate_cloudobject finds more than one object matching the given type (and identifier) it will return one of them
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.
Format:
locate_cloudobject(type [,identifier])
Parameters:
| Parameter | Type | Description |
|---|---|---|
| type | string | The type of of the object to search for. |
| identifier | string |  [Optional]The identifier to search for. |
Returned Value:
| Type | Description |
|---|---|
| cloudobject | Return value will be the cloudobject found having the given identifier or FALSE if none found |
Examples
profile = locate_cloudobject("profile",profile_id)
if (!profile) {
alert("your profile has not been set up yet")
}