UFN_SEARCHLIST_PRODUCTISSEARCHLIST
Evaluates a search list spec for product flags.
Return
| Return Type |
|---|
| bit |
Parameters
| Parameter | Parameter Type | Mode | Description |
|---|---|---|---|
| @SEARCHLISTID | uniqueidentifier | IN |
Definition
Copy
create function dbo.UFN_SEARCHLIST_PRODUCTISSEARCHLIST(@SEARCHLISTID uniqueidentifier)
returns bit
with execute as caller
as begin
declare @ISPRODUCT bit = 0;
with xmlnamespaces(default 'bb_appfx_searchlist', 'bb_appfx_commontypes' as common)
select @ISPRODUCT = dbo.UFN_INSTALLEDPRODUCTS_OPTIONALPRODUCTSINSTALLED(
SEARCHLISTCATALOG.SEARCHLISTSPEC.query('/SearchListSpec/common:InstalledProductList')
)
FROM dbo.SEARCHLISTCATALOG
WHERE ID = @SEARCHLISTID;
RETURN @ISPRODUCT;
end