Edits history of script submission #11436 for ' Example of responding to a Microsoft Teams command (teams)'

  • bun
    One script reply has been approved by the moderators
    Ap­pro­ved
    import * as wmill from "windmill-client"
    
    export async function main(
      activity_id: string,
      command: string,
      from_name: string,
      team_id: string,
      teams_message: any
    ) {
      // Your business logic
      const res = "task completed successfully!"
    
      // (optional) Send update to Teams channel about completion of job
      await wmill.TeamsService.sendMessageToConversation(
        {
          requestBody: {
            conversation_id: activity_id,
            success: true,
            text: `Hi, ${from_name}, command: ${command} ran successfully with the following result: ${res}`
          }
        }
      )
    }

    Submitted by hugo697 378 days ago

  • bun
    import * as wmill from "windmill-client"
    
    export async function main(
      activity_id: string,
      command: string,
      from_name: string,
      team_id: string,
      teams_message: any
    ) {
      // Your business logic
      const res = "task completed successfully!"
    
      // (optional) Send update to Teams channel about completion of job
      await wmill.TeamsService.sendMessageToConversation(
        {
          requestBody: {
            conversation_id: activity_id,
            success: true,
            text: `Hi, ${from_name}, command: ${command} ran successfully with the following result: ${res}`
          }
        }
      )
    }

    Submitted by alex308 468 days ago