Obtains the mobile number of the indicated user.
1 system.user.getMobileNumber
<system.user.getMobileNumber code='code'/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Acode | string | User code. |
Returns | |
---|---|
Type | Description |
string | User's mobile number. |
Example
Obtain the mobile number of the user who performs the action.
Copy
<xsql-script name='system_user_getMobileNumber_sample1'> <body> <println> <system.user.getMobileNumber/> </println> </body> </xsql-script>
If you do not pass the user code via the attribute code, the system returns the value related with the user which executes the command.
Example
Obtains the mobile number of a specified user.
Copy
<xsql-script name='system_user_getMobileNumber_sample2'> <body> <println> <system.user.getMobileNumber code='jet'/> </println> </body> </xsql-script>
Informing the attribute code, the system returns the value related with the specified user code.