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.

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")
 }