【发布时间】:2021-06-21 17:08:54
【问题描述】:
任务模块没有关闭,也没有返回机器人。 在我的 Customform.html 中
async componentDidMount() {
const { headers, } = this.state;
microsoftTeams.initialize();
microsoftTeams.getContext((context, error) => {
this.setState( { context: context, }, () => { console.log( "this.state.context in upn is ", this.state.context["upn"] ); } ); }); }
提交处理程序
microsoftTeams.initialize();
if ( reservationResponse.status && reservationResponse.status === 400 ) {
this.setState({ showErrorMessage: true, loading: false, disableButton: false, }); }
else { this.setState({ loading: false, });
microsoftTeams.tasks.submitTask( reservationResponse, "bot-id" );
return true;
bot id 正确且有效域列表中的 url。 我已经尝试了所有可能的组合,但它根本不在handleTeamsTaskModuleSubmit 函数中。
【问题讨论】:
-
让我检查一下这个问题,并会回复你。
标签: node.js botframework microsoft-teams microsoft-graph-teams