publishToSites method: Feed class
Syntax
publishToSites(Sites)
Description
Use this method to publish the feed definition to the specified sites.
Parameters
| Parameter | Description |
|---|---|
|
Sites |
Specifies as an array of string the list of sites to which to publish the feed definition. |
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.publishToSites(CreateArray("EMPLOYEE", "CUSTOMER"));
End-If;