ADMIN_Search_InsertUpdate

Deprecated. Don't use for new development and try to migrate existing uses.

Type: Stored procedure

Creates or updates saved search.

As there is no public API for editing the parameters of a saved search this procedure is only useful for calling from ADMINEDITABLE_Search_InsertUpdate.

Return value: int

Returns a negative value on failure.

Parameters

@id mandatory int
SearchID.
@MenuItemID mandatory int
@SaveAsNewSearch mandatory bit
If 1 a new search is created even if @id is not null.
@SearchGroupID mandatory int
@SearchName mandatory varchar(300)
@UserID mandatory int