AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
import { createCustomApiCallAction } from '@activepieces/pieces-common';
import { getMicrosoftCloudFromAuth, getPowerBiBaseUrl } from './lib/common/microsoft-cloud';
import {
createPiece,
OAuth2PropertyValue,
} from '@activepieces/pieces-framework';
import { PieceCategory } from '@activepieces/pieces-framework';
import { createDatasetAction } from './lib/actions/create-dataset';
import { pushRowsToDatasetTableAction } from './lib/actions/push-rows-to-table';
import { refreshDatasetAction } from './lib/actions/refresh-dataset';
import { runDaxQueryAction } from './lib/actions/run-dax-query';
import { exportReportToFileAction } from './lib/actions/export-report-to-file';
import { listReportsAction } from './lib/actions/list-reports';
import { cloneReportAction } from './lib/actions/clone-report';
import { importFileAction } from './lib/actions/import-file';
import { microsoftPowerBiAuth } from './lib/auth';
export const microsoftPowerBi = createPiece({
displayName: 'Microsoft Power BI',
description: 'Create and manage Power BI datasets and reports, and push data to them',
minimumSupportedRelease: '0.36.1',
logoUrl: 'https://cdn.activepieces.com/pieces/microsoft-power-bi.png',
categories: [PieceCategory.BUSINESS_INTELLIGENCE],
auth: microsoftPowerBiAuth,
authors: ['calladodan','kishanprmr'],
actions: [
createDatasetAction,
pushRowsToDatasetTableAction,
refreshDatasetAction,
runDaxQueryAction,
exportReportToFileAction,
listReportsAction,
cloneReportAction,
importFileAction,
createCustomApiCallAction({
auth: microsoftPowerBiAuth,
baseUrl: (auth) => {
const cloud = getMicrosoftCloudFromAuth(auth as OAuth2PropertyValue);
return getPowerBiBaseUrl(cloud) + '/datasets';
},
authMapping: async (auth) => {
return {
Authorization: `Bearer ${(auth as OAuth2PropertyValue).access_token}`,
};
},
}),
],
triggers: [],
});