UFN_MKTMARKETINGPLAN_GETTEMPLATEITEMLIST
Returns a table of all of the template items (caption and colors) that have been assigned to the given marketing plan
Return
Return Type |
---|
table |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@MARKETINGPLANID | uniqueidentifier | IN |
Definition
Copy
CREATE function dbo.[UFN_MKTMARKETINGPLAN_GETTEMPLATEITEMLIST]
(
@MARKETINGPLANID uniqueidentifier
)
/*
Returns a table of template items that have been assigned to the given MARKETINGPLANID
*/
returns table
as
return (select
[M].[ID],
[M].[CAPTION],
[M].[BACKCOLOR],
[M].[FORECOLOR],
[M].[CAPTIONCOLOR],
[M].[LEVEL]
from dbo.[MKTMARKETINGPLANITEMTEMPLATEITEM] [M]
where [M].[MARKETINGPLANID] = @MARKETINGPLANID);