Obtains the phone number for SMS shipments of the indicated user.
1 system.user.getSMSAddress
<system.user.getSMSAddress code='code'/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Acode | string | User code. |
Returns | |
---|---|
Type | Description |
string | Phone number for SMS shipments of the indicated user. |
Example
Obtain the phone number for SMS shipments of the user by default.
Copy
<xsql-script name='system_user_getSMSAddress_sample1'> <body> <println> <system.user.getSMSAddress /> </println> </body> </xsql-script>
If you do not pass a user code via the attribute , the system returns the value related with the user which executes the command.
Example
Obtain the phone number for SMS shipments of a specific user.
Copy
<xsql-script name='system_user_getSMSAddress_sample2'> <body> <println> <system.user.getSMSAddress code='bpr'/> </println> </body> </xsql-script>
Informing the attribute code, the system returns the value related with the specified user code.