getFeeds(pulseContext, feedID, feedClass, feedFilters, fetchFeedsCancelTokenSource, c11nEnv, isLoadMore)
Obtains the feeds for a given context.
Returns
A Promise that resolves to an object.
Parameters
Name | Type | Description | Required |
pulseContext | string | The name of the application context or case context for which the feed must be fetched. | ✅ |
feedID | string | The ID of the feed that must be fetched. | ✅ |
feedClass | string | The class associated with the feed to be fetched. | ✅ |
feedFilters | Array.<object> | The list of conditions through which the feed to be fetched is filtered. | ✅ |
fetchFeedsCancelTokenSource | Array.<object> | The list of API requests for fetching the feed. | ✅ |
c11nEnv | object | The name of the context where the API is being called. | ✅ |
isLoadMore | boolean | The flag that determines if the next set of feeds should be loaded. | ❌ |
Usage example
In this example, the API obtains the feed of a case whose ID is
pyDashboardFeed
.
PCore.getFeedUtils().getFeeds('DATA-PORTAL', 'pyDashboardFeed','class','[{id: 'All', label: 'All', on: false, disabled: false}]',[],'app/primary_1',true)
.then(feedResponse => {
// feedResponse array
}).catch(err => {
// errors
});
Previous topic deleteMessage(messageID, isReply, replyID, c11nEnv) Next topic getLikedUsers(messageID, c11nEnv)