saveAsTemplate method: Feed class

Syntax

saveAsTemplate(new_ID, CopyPrefData)

Description

Use this method to save the feed definition to the database as a feed template definition using the given new ID.

Parameters

Parameter Description

new_ID

Specifies the new feed template ID as a string.

CopyPrefData

Specifies as a Boolean value whether to copy administrator and user personalization data.

Returns

A Boolean value: True if the save was successful, False otherwise.

Example

import PTFP_FEED:FeedFactory;
import PTFP_FEED:Feed;

Local boolean &succeed;
Local PTFP_FEED:FeedFactory &thisFeedFactory = create PTFP_FEED:FeedFactory();
Local PTFP_FEED:Feed &thisFeed = &thisFeedFactory.getFeed("feed_ID",  ⇒
&thisFeedFactory.Utility.OPERATINGMODE_DEFAULT);
Local PTFP_FEED:Feed &newFeed;

If &thisFeed <> Null Then
   &newFeed = &thisFeed.saveAsTemplate("new_feed_template_id", True);
End-If;