API UpdateRecommendedLink

Z Podpora.nextis.cz
Přejít na: navigace, hledání

Description

Method allows You to update recommended link in system.

Exact name

API_UpdateRecommendedLink

Type

Standard executable stored procedure.

Specification

Parameter Data type Value range Description Relation
@ID int Internal system id
@Name nvarchar(35) Name
@Description nvarchar(200) Description
@Url nvarchar(500) Url
@IsTargetBlank bit Is target blank
@RegisteredOnly bit Registered only

Return

0 : OK
100 : Item could not be updated

Example

 DECLARE @return_value int
 DECLARE @ID int 
 DECLARE @Name nvarchar(35)
 DECLARE @Description nvarchar(200)
 DECLARE @Url nvarchar(500)
 DECLARE @IsTargetBlank bit
 DECLARE @RegisteredOnly bit
 
 SELECT @ID = [ID], 
       @Name = [Name],
       @Description = 'Description 2',
       @Url = [Url],
       @IsTargetBlank = [IsTargetBlank],
       @RegisteredOnly = [RegisteredOnly]
 FROM   [API_GetRecommendedLinks] 
 WHERE  id = 3
 
 EXECUTE @return_value = [API_UpdateRecommendedLink] 
  @ID, 
  @Name,
  @Description,
  @Url,
  @IsTargetBlank,
  @RegisteredOnly

Notices

None.