The esri_webfeaturelayer_branchNames function retrieves a list of branch version names from the server. This AutoLISP function requires you to be signed in to access the layer to retrieve the names.
Syntax
(esri_webfeaturelayer_branchNames flname)
Arguments
The following argument is included:
- flname | string | required | An existing web feature layer name in the drawing.
Example usage
Retrieve a list of the branch version names associated with the Distribution web feature layer. (esri_webfeaturelayer_branchNames "Distribution")
Result example usage
Returns a list of branch version names associated with the Distribution web feature layer as a list of strings.
("sde.DEFAULT" "emil9669.TestVersion" "editor01.private" "editor01.public" "editor01.protected" "ruser.testfromUI")Return values
The following are the possible return values:
- If successful, the function returns a list of branch version names as strings.
- If failed, it returns a list with the first value of nil and an associated list containing the key value "Error" and an associated error message as a string: (nil ("Error" . "<message>"))
Failed return values
A failed return value can occur for any of the following reasons:
- (nil ("Error" . "No connected web feature layers found."))
No connected web feature layers were found.
- (nil ("Error" . "Layer does not support branch versions."))
The layer does not support branch versions.
- (nil ("Error" . "Missing required argument."))
The required argument was not supplied.