UFN_EVENT_GETONSALEINFO_TOITEMLISTXML

Used to convert the results of UFN_EVENT_GETONSALEINFO to xml.

Return

Return Type
xml

Parameters

Parameter Parameter Type Mode Description
@EVENTID uniqueidentifier IN

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  7/16/2009 11:16:08 PM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=2.1.30.0, Culture=neutral, PublicKeyToken=null
Based on:  UFN_EVENT_GETONSALEINFO
Copyright Blackbaud
*/
CREATE FUNCTION dbo.[UFN_EVENT_GETONSALEINFO_TOITEMLISTXML](
@EVENTID uniqueidentifier
    )
returns xml
as
BEGIN

RETURN (
SELECT [ID], [ONSALEDATE], [ONSALETIME], [SALESMETHODID], [SEQUENCE]
 FROM dbo.[UFN_EVENT_GETONSALEINFO](@EVENTID)
 order by SEQUENCE
 for xml raw('ITEM'),type,elements,root('ONSALEINFO'),BINARY BASE64

)

END