Create Microsoft Teams Feed
User Intent
Operation
Code Example (TypeScript)
import { Graphlit } from 'graphlit-client';
import { FeedListingTypes, FeedTypes } from 'graphlit-client/dist/generated/graphql-types';
const graphlit = new Graphlit();
const feed = await graphlit.createFeed({
name: 'Engineering Team',
type: FeedTypes.MicrosoftTeams,
microsoftTeams: {
type: FeedListingTypes.Past,
clientId: process.env.MICROSOFT_CLIENT_ID!,
clientSecret: process.env.MICROSOFT_CLIENT_SECRET!,
refreshToken: process.env.MICROSOFT_REFRESH_TOKEN!,
teamId: 'team-id',
channelId: 'channel-id',
readLimit: 1000,
},
// Optional: add workflow for content processing
// workflow: { id: workflow.createWorkflow.id }
});
console.log(`Created Teams feed: ${feed.createFeed.id}`);Configuration
OAuth Setup
What Gets Synced
Last updated