saveAs method: Feed class

Syntax

saveAs(new_ID, CopyPrefData)

Description

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

Parameters

Parameter Description

new_ID

Specifies the new feed ID as a string.

CopyPrefData

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

Returns

A new Feed object.

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.saveAs("new_feed_id", True);
End-If;