UFN_INTERACTION_GETRESPONSES_FROMITEMLISTXML

Used to convert an xml string to a table based on UFN_INTERACTION_GETRESPONSES.

Return

Return Type
table

Parameters

Parameter Parameter Type Mode Description
@ITEMLISTXML xml IN

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  1/27/2010 7:28:59 PM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=2.5.465.0, Culture=neutral, PublicKeyToken=null
Based on:  UFN_INTERACTION_GETRESPONSES
Copyright Blackbaud
*/
CREATE FUNCTION dbo.[UFN_INTERACTION_GETRESPONSES_FROMITEMLISTXML](@ITEMLISTXML xml) RETURNS TABLE AS
RETURN (
SELECT

T.c.value('(CODE)[1]','nvarchar(10)') AS 'CODE',
T.c.value('(DATE)[1]','datetime') AS 'DATE',
T.c.value('(ID)[1]','uniqueidentifier') AS 'ID',
T.c.value('(RESPONSECATEGORY)[1]','uniqueidentifier') AS 'RESPONSECATEGORY',
T.c.value('(RESPONSEID)[1]','uniqueidentifier') AS 'RESPONSEID'
FROM @ITEMLISTXML.nodes('/RESPONSES/ITEM') T(c)
)