unpublishFromSites method: Feed class

Syntax

unpublishFromSites(Sites)

Description

Use this method to remove the published feed definition from the specified sites.

Parameters

Parameter Description

Sites

Specifies as an array of string the list of sites from which the feed definition is to be removed.

Returns

None.

Example

import PTFP_FEED:FeedFactory;
import PTFP_FEED:Feed;

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

If &thisFeed <> Null Then
   &thisFeed.unpublishFromSites(CreateArray("EMPLOYEE", "CUSTOMER"));
End-If;