interface MicrosoftTeamsV2NodeParameters {
approvalOptions?: {
values: {
approvalType?: "single" | "double";
approveLabel?: string;
disapproveLabel?: string;
};
};
bucketId?: { mode: "id"
| "list"; value: string };
channelId?: { mode: "id" | "list"; value: string };
chatId?: { mode: "id" | "list"; value: string };
contentType?: "text" | "html";
defineForm?: "json" | "fields";
formFields?: {
values: {
acceptFileTypes?: string;
defaultValue?: string;
elementName?: string;
fieldLabel: string;
fieldName: string;
fieldOptions: { values: { option?: string }[] };
fieldType:
| "number"
| "file"
| "text"
| "email"
| "password"
| "date"
| "html"
| "checkbox"
| "dropdown"
| "hiddenField"
| "radio"
| "textarea";
fieldValue?: string;
formatDate?: string;
html?: string;
limitSelection?: "exact"
| "range"
| "unlimited";
maxSelections?: number;
minSelections?: number;
multipleFiles?: boolean;
multiselect?: boolean;
multiselectLegacyNotice?: string;
numberOfSelections?: number;
placeholder?: string;
requiredField?: boolean;
}[];
};
groupId?: { mode: "id"
| "list"; value: string };
jsonOutput?: string;
limit?: number;
message?: string;
messageId?: string;
name?: string;
operation?:
| "create"
| "get"
| "getAll"
| "update"
| "sendAndWait"
| "deleteChannel"
| "deleteTask";
options?: | {
description?: string;
type?: "private"
| "standard";
}
| { description?: string }
| {
includeLinkToWorkflow?: boolean;
makeReply?: string;
}
| { includeLinkToWorkflow?: boolean }
| {
appendAttribution?: boolean;
limitWaitTime?: {
values: {
limitType?:
| "afterTimeInterval"
| "atSpecifiedTime";
maxDateAndTime?: string;
resumeAmount?: number;
resumeUnit?: "minutes"
| "hours"
| "days";
};
};
}
| {
appendAttribution?: boolean;
limitWaitTime?: {
values: {
limitType?: | "afterTimeInterval"
| "atSpecifiedTime";
maxDateAndTime?: string;
resumeAmount?: number;
resumeUnit?: "minutes"
| "hours"
| "days";
};
};
messageButtonLabel?: string;
responseFormButtonLabel?: string;
responseFormCustomCss?: string;
responseFormDescription?: string;
responseFormTitle?: string;
}
| {
assignedTo?: { mode: "id"
| "list"; value: string };
dueDateTime?: string;
percentComplete?: number;
};
planId?: { mode: "id"
| "list"; value: string };
resource?:
| "task"
| "channel"
| "channelMessage"
| "chatMessage";
responseType?: "approval"
| "freeText"
| "customForm";
returnAll?: boolean;
taskId?: string;
tasksFor?: "member" | "plan";
teamId?: { mode: "id" | "list" | "url"; value: string };
title?: string;
updateFields?: {
assignedTo?: { mode: "id" | "list"; value: string };
bucketId?: { mode: "id" | "list"; value: string };
dueDateTime?: string;
groupId?: { mode: "id" | "list"; value: string };
percentComplete?: number;
planId?: { mode: "id" | "list"; value: string };
title?: string;
};
}Properties§
readonly approval Options?: { ... }readonly bucket Id?: { ... }The bucket for the task to belong to Default: {"mode":"list","value":""} Type options: {"loadOptionsDependsOn":["planId.value"]}
readonly channel Id?: { ... }Select the channel from the list, by URL, or by ID (the ID is the "threadId" in the URL) Default: {"mode":"list","value":""} Type options: {"loadOptionsDependsOn":["teamId.value"]}
readonly chat Id?: { ... }Select the chat from the list, by URL, or by ID (find the chat ID after "conversations/" in the URL) Default: {"mode":"list","value":""}
readonly content Type?: "text" | "html"Whether the message is plain text or HTML Default: "text"
readonly define Form?: "json" | "fields"Default: "fields"
readonly form Fields?: { ... }Default: {} Type options: {"multipleValues":true,"sortable":true,"fixedCollection":{"itemTitle":"={{ $collection.item.properties.find(p => p.name === "fieldType").options.find(o => o.value === $collection.item.value.fieldType).name }}"}}
readonly group Id?: { ... }Default: {"mode":"list","value":""} Type options: {"loadOptionsDependsOn":["groupSource"]}
readonly json Output?: stringDefault: "[\n {\n "fieldLabel": "Name",\n "placeholder": "enter your name",\n "requiredField": true\n },\n {\n "fieldLabel": "Age",\n "fieldType": "number",\n "placeholder": "enter your age"\n },\n {\n "fieldLabel": "Email",\n "fieldType": "email",\n "requiredField": true\n },\n {\n "fieldLabel": "Textarea",\n "fieldType": "textarea"\n },\n {\n "fieldLabel": "Dropdown Options",\n "fieldType": "dropdown",\n "fieldOptions": {\n "values": [\n {\n "option": "option 1"\n },\n {\n "option": "option 2"\n }\n ]\n },\n "requiredField": true\n },\n {\n "fieldLabel": "Checkboxes",\n "fieldType": "checkbox",\n "fieldOptions": {\n "values": [\n {\n "option": "option 1"\n },\n {\n "option": "option 2"\n }\n ]\n }\n },\n {\n "fieldLabel": "Radio",\n "fieldType": "radio",\n "fieldOptions": {\n "values": [\n {\n "option": "option 1"\n },\n {\n "option": "option 2"\n }\n ]\n }\n },\n {\n "fieldLabel": "Email",\n "fieldType": "email",\n "placeholder": "me@mail.con"\n },\n {\n "fieldLabel": "File",\n "fieldType": "file",\n "multipleFiles": true,\n "acceptFileTypes": ".jpg, .png"\n },\n {\n "fieldLabel": "Number",\n "fieldType": "number"\n },\n {\n "fieldLabel": "Password",\n "fieldType": "password"\n }\n]\n" Type options: {"rows":5}
readonly limit?: numberMax number of results to return Default: 100 Type options: {"minValue":1}
readonly message?: stringThe content of the message to be sent Type options: {"rows":2}
readonly message Id?: stringThe ID of the message to retrieve
readonly name?: stringThe name of the new channel you want to create
readonly operation?:
| "create"
| "get"
| "getAll"
| "update"
| "sendAndWait"
| "deleteChannel"
| "deleteTask"Default: "create"
readonly options?:
| {
description?: string;
type?: "private"
| "standard";
}
| { description?: string }
| {
includeLinkToWorkflow?: boolean;
makeReply?: string;
}
| { includeLinkToWorkflow?: boolean }
| {
appendAttribution?: boolean;
limitWaitTime?: {
values: {
limitType?:
| "afterTimeInterval"
| "atSpecifiedTime";
maxDateAndTime?: string;
resumeAmount?: number;
resumeUnit?: "minutes"
| "hours"
| "days";
};
};
}
| {
appendAttribution?: boolean;
limitWaitTime?: {
values: {
limitType?: | "afterTimeInterval"
| "atSpecifiedTime";
maxDateAndTime?: string;
resumeAmount?: number;
resumeUnit?: "minutes"
| "hours"
| "days";
};
};
messageButtonLabel?: string;
responseFormButtonLabel?: string;
responseFormCustomCss?: string;
responseFormDescription?: string;
responseFormTitle?: string;
}
| {
assignedTo?: { mode: "id"
| "list"; value: string };
dueDateTime?: string;
percentComplete?: number;
}Default: {}
readonly plan Id?: { ... }The plan for the task to belong to Default: {"mode":"list","value":""} Type options: {"loadOptionsDependsOn":["groupId.value"]}
readonly resource?: "task" | "channel" | "channelMessage" | "chatMessage"Default: "channel"
readonly response Type?: "approval" | "freeText" | "customForm"Default: "approval"
readonly return All?: booleanWhether to return all results or only up to a given limit
readonly task Id?: stringThe ID of the task to delete
readonly tasks For?: "member" | "plan"Whether to retrieve the tasks for a user or for a plan Default: "member"
readonly team Id?: { ... }Select the team from the list, by URL, or by ID (the ID is the "groupId" parameter in the URL you get from "Get a link to the team") Default: {"mode":"list","value":""}
readonly title?: stringTitle of the task
readonly update Fields?: { ... }Default: {}
Default: {}