- API
- Activity stream metadata
- Service for working with the object activity stream
- Getting started [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
- Manage types
- Global context and isolation
- Manage apps
- Batch actions with app items
- Manage external services
- Scripts in widgets
- Web components
- Access permissions
- Getting started with processes
- Getting started with signatures
- Getting started with file previews
- Getting started with the organizational chart
- Getting started with users and groups
-
Getting started with the
Table data type -
Getting started with the
Category data type - Dynamic event type calculation
- Typical use cases
- API
Service for working with the object activity stream
Hierarchy
Methods
commentList
Get comment list.
Parameters
target: RefItem
messageId: string
Optional options: FeedListOptions<FeedCommentFilter>
Returns Promise<FeedMessageComment[]>
Comment list.
const appItem = await Context.data.app.fetch(); const messageId = '55467104-fe1e-4b20-9233-412a10bf4a11'; const users = await System.users.search().size(2).all(); const options: FeedListOptions = { from: 5, size: 20, filter: { authors: users, } }; const comments = await System.feed.target.commentList (appItem, messageId, options);createComment
Create comment.
Parameters
target: RefItem
messageId: string
body: string
Optional options: FeedPostOptions
Returns Promise<string>
Unique comment identifier.
const appItem = await Context.data.app.fetch(); const messageId = '55467104-fe1e- 4b20-9233-412a10bf4a11'; const commentBody = 'Comment body'; const users = await System.users.search().size(2).all(); const blob = new Blob (['file_text_content']); const buf = await blob.arrayBuffer(); const file = await System.files.createTemporary('file.txt', buf); const options: FeedPostOptions = { mentions: users, tempFiles: [file], }; const commentId = await System.feed.target.createComment (appItem, messageId, commentBody, options);createMessage
Create message.
Parameters
target: RefItem
title: string | null
body: string
Optional options: FeedPostOptions
Returns Promise<string>
Unique message identifier.
const appItem = await Context.data.app.fetch(); const messageTitle = 'Title'; const messageBody = 'Message body'; const users = await System.users.search().size(2).all(); const blob = new Blob(['file_text_content']); const buf = await blob.arrayBuffer(); const file = await System.files.createTemporary ('file.txt', buf); const options: FeedPostOptions = { mentions: users, tempFiles: [file], }; const messageId = await System.feed.target.createMessage(appItem, messageTitle, messageBody, options) ;messageList
Get message list.
Parameters
target: RefItem
Optional options: FeedListOptions<FeedMessageFilter>
Returns Promise<FeedMessage[]>
Message list.
const appItem = await Context.data.app.fetch(); const users = await System.users.search().size(2).all(); const options: FeedListOptions = { from: 5, size: 20, filter: { hasComments: true, authors: users, } }; const messages = await System.feed.target.messageList(appItem, options);Methods