$account.setName

Set a new name for the current account.
Syntax
    $account{create}{account_name}
    $account.create{account_name}
DocumentationSet a new name for the current account

    Parameters:
      account_name, the name of the account to be created.
      Returns:
        none
Examples
How to get the names of all accounts:

    $//Get all account ids and use the forEach loop to get the account name for each id
    forEach{id}{$account{list}}
      {
      $//Get the name of the next account and store it in the variable name
      $set{name}{$account{getName}{$get{id}}

      ...
      }

How to create an account:

    $set{name}{myAccount}
    $set{uid}{admin}
    $set{pwd}{admin}
    $set{template}{some_template.zip}

    $//Check if an account named 'myAccount' exists. If not create it.
    if {$account{exists}{$get{name}}}
      {
      }
      {
      $account{create}{$get{name}}{$get{template}}{$get{uid}}{$get{pwd}}
      }

    ...
GroupSpecial
Minimum required transaction-mode:UPDATE=TREE
Required scripting permission of the developerPERMISSION_FL_EXPERT
Minimum parameters1
Maximum parameters 1