UFN_EMAILQUEUEGENERALPURPOSE_LOOKAHEAD

Returns whether there are any items in the general purpose email queue to be processed.

Return

Return Type
bit

Parameters

Parameter Parameter Type Mode Description
@BUSINESSPROCESSPARAMETERSETID uniqueidentifier IN

Definition

Copy


create function dbo.UFN_EMAILQUEUEGENERALPURPOSE_LOOKAHEAD
(
    @BUSINESSPROCESSPARAMETERSETID uniqueidentifier = null
)
returns bit
as begin
    declare @RUN as bit = 0;
    select top 1 @RUN = 1 from EMAILQUEUEGENERALPURPOSE;
    return @RUN;
end