UFN_CAMPAIGN_DESIGNATIONSBYSELECTION_TOITEMLISTXML

Used to convert the results of UFN_CAMPAIGN_DESIGNATIONSBYSELECTION to xml.

Return

Return Type
xml

Parameters

Parameter Parameter Type Mode Description
@CAMPAIGNID uniqueidentifier IN
@IDSETREGISTERID uniqueidentifier IN
@CURRENTAPPUSERID uniqueidentifier IN

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  1/27/2010 7:12:16 PM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=2.5.465.0, Culture=neutral, PublicKeyToken=null
Based on:  UFN_CAMPAIGN_DESIGNATIONSBYSELECTION
Copyright Blackbaud
*/
CREATE FUNCTION dbo.[UFN_CAMPAIGN_DESIGNATIONSBYSELECTION_TOITEMLISTXML](
@CAMPAIGNID uniqueidentifier
, @IDSETREGISTERID uniqueidentifier
, @CURRENTAPPUSERID uniqueidentifier
    )
returns xml
as
BEGIN

RETURN (
SELECT [DESIGNATIONID]
 FROM dbo.[UFN_CAMPAIGN_DESIGNATIONSBYSELECTION](@CAMPAIGNID, @IDSETREGISTERID, @CURRENTAPPUSERID)
 order by DESIGNATIONID
 for xml raw('ITEM'),type,elements,root('DESIGNATIONS'),BINARY BASE64

)

END