UFN_AMPROIMPORT_LOOKUPREGISTRANT

Returns the ID from REGISTRANT for a registrant found in AuctionMaestro Pro.

Return

Return Type
uniqueidentifier

Parameters

Parameter Parameter Type Mode Description
@LOOKUPID nvarchar(100) IN

Definition

Copy


            create function dbo.UFN_AMPROIMPORT_LOOKUPREGISTRANT
            (
                @LOOKUPID nvarchar(100)
            )
            returns uniqueidentifier
            as
            begin
                declare @R uniqueidentifier = null;

                select top 1
                    @R = ID
                from dbo.REGISTRANT
                where REGISTRANT.LOOKUPID = @LOOKUPID
                order by DATEADDED;

                return @R;
            end