API UpdateNewsletterEmailAddresses: Porovnání verzí
Skočit na navigaci
Skočit na vyhledávání
Založena nová stránka s textem „==== Description ==== Method allows You to update newsletter email addresses in system. ==== Exact name ==== <code>API_UpdateNewsletterEmailAddresses</cod…“ |
Bez shrnutí editace |
||
| (Nejsou zobrazeny 3 mezilehlé verze od stejného uživatele.) | |||
| Řádek 21: | Řádek 21: | ||
|Internal system id | |Internal system id | ||
| | | | ||
|- | |||
|@CustomerID | |||
|int | |||
| | |||
|ID of customer from customer list (see relation) | |||
|API_GetCustomers.ID | |||
|- | |||
|@Email | |||
|nvarchar(max) | |||
| | |||
|Email | |||
| | |||
|} | |} | ||
==== Return ==== | |||
0 : OK | |||
100 : Item could not be updated | |||
==== Example ==== | ==== Example ==== | ||
<syntaxhighlight lang="sql"> | <syntaxhighlight lang="sql"> | ||
DECLARE @ID | DECLARE @return_value int | ||
DECLARE @ | DECLARE @ID int | ||
DECLARE @CustomerID int | |||
DECLARE @Email nvarchar(max) | |||
SELECT @ID = id, | SELECT @ID = id, | ||
| Řádek 37: | Řádek 52: | ||
WHERE id = 3 | WHERE id = 3 | ||
EXECUTE [API_UpdateNewsletterEmailAddresses] | EXECUTE @return_value = [API_UpdateNewsletterEmailAddresses] | ||
@ID, | @ID, | ||
@CustomerID, | @CustomerID, | ||
Aktuální verze z 9. 11. 2018, 13:21
Description
Method allows You to update newsletter email addresses in system.
Exact name
API_UpdateNewsletterEmailAddresses
Type
Standard executable stored procedure.
Specification
| Parameter | Data type | Value range | Description | Relation |
|---|---|---|---|---|
| @ID | int | Internal system id | ||
| @CustomerID | int | ID of customer from customer list (see relation) | API_GetCustomers.ID | |
| nvarchar(max) |
Return
0 : OK 100 : Item could not be updated
Example
DECLARE @return_value int
DECLARE @ID int
DECLARE @CustomerID int
DECLARE @Email nvarchar(max)
SELECT @ID = id,
@CustomerID= [CustomerID],
@Email = 'info@nextis.cz'
FROM [API_GetNewsletterEmailAddresses]
WHERE id = 3
EXECUTE @return_value = [API_UpdateNewsletterEmailAddresses]
@ID,
@CustomerID,
@Email
Notices
None.