UFN_FAFEVENT_GETPARTICIPANTDONORSCOUNT

Return number of donors for the current FAF event participant using event revenue rules

Return

Return Type
int

Parameters

Parameter Parameter Type Mode Description
@EVENTID uniqueidentifier IN
@CONSTITUENTID uniqueidentifier IN

Definition

Copy



CREATE function [dbo].[UFN_FAFEVENT_GETPARTICIPANTDONORSCOUNT]  
(  
    @EVENTID  uniqueidentifier   
   ,@CONSTITUENTID uniqueidentifier  
)  
returns int  
with execute as caller  
as
begin  
    declare @TOTAL as int;

    select @TOTAL = DONORCOUNT
    from dbo.UFN_REVENUE_GETPARTICIPANTRAISEDTOTAL_2(@EVENTID)
    where CONSTITUENTID = @CONSTITUENTID

    return @TOTAL
end