API CreateCountry: Porovnání verzí

Z Podpora.nextis.cz
Přejít na: navigace, hledání
(Založena nová stránka s textem „==== Description ==== Method allows You to create new country in system. ==== Exact name ==== <code>API_CreateCountry</code> ==== Type ==== Standard exec…“)
 
 
(Není zobrazena jedna mezilehlá verze od stejného uživatele.)
Řádka 16: Řádka 16:
 
!Relation
 
!Relation
 
|-
 
|-
|@Title
+
|@Name
 
|nvarchar(50)
 
|nvarchar(50)
 
|
 
|
|Title
+
|Name
 +
|
 +
|-
 +
|@PhoneNumberPrefix
 +
|nvarchar(50)
 +
|
 +
|Phone number prefix
 +
|
 +
|-
 +
|@Code
 +
|nvarchar(50)
 +
|
 +
|Code
 
|
 
|
 
|}
 
|}
 +
 +
==== Return ====
 +
0 : OK
 +
100 : Item could not be created
  
 
==== Example ====
 
==== Example ====
 
<syntaxhighlight lang="sql">
 
<syntaxhighlight lang="sql">
EXEC [API_CreateCountry] @Title= 'Title' ,@HtmlText= '<span style="color: red;"> Text </span>' ,@Language= 0
+
DECLARE @return_value int
 +
EXEC @return_value = [API_CreateCountry] @Name= 'Poland' ,@PhoneNumberPrefix= '0048' ,@Code= 'PL'
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
==== Notices ====
 
==== Notices ====
 
None.
 
None.

Aktuální verze z 22. 9. 2017, 09:43

Description

Method allows You to create new country in system.

Exact name

API_CreateCountry

Type

Standard executable stored procedure.

Specification

Parameter Data type Value range Description Relation
@Name nvarchar(50) Name
@PhoneNumberPrefix nvarchar(50) Phone number prefix
@Code nvarchar(50) Code

Return

0 : OK
100 : Item could not be created

Example

 DECLARE @return_value int
 EXEC @return_value = [API_CreateCountry] @Name= 'Poland' ,@PhoneNumberPrefix= '0048' ,@Code= 'PL'

Notices

None.