UFN_CONSTITUENT_MAPFROM_REVENUEBATCHROWCONSTITUENT
Return
Return Type |
---|
uniqueidentifier |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@REVENUEBATCHROWCONSTITUENTID | nvarchar(110) | IN |
Definition
Copy
create function dbo.UFN_CONSTITUENT_MAPFROM_REVENUEBATCHROWCONSTITUENT
(
@REVENUEBATCHROWCONSTITUENTID nvarchar(110)
)
returns uniqueidentifier
as
begin
declare @CONSTITUENTID uniqueidentifier = cast(substring(@REVENUEBATCHROWCONSTITUENTID, 1, 36) as uniqueidentifier);
if exists(select 1 from dbo.CONSTITUENT where ID = @CONSTITUENTID)
return @CONSTITUENTID;
return null;
end