Forum Discussion
diegoSpace
Feb 21, 2020Brass Contributor
FetchTask: Asynchronous task return?
Hi,
I have a Teams bot with composeExtensions. When user selects one of these commands, I receive an event in my bot code: function 'handleTeamsMessagingExtensionFetchTask'
There I return a task to show a web page in Teams browser
My question: I need to do some asynchronous code before returning the task, is it possible?
Thanks,
Diego
- subhasish-MSFTMicrosoft
Yes, you can perform asynchronous code before returning the task. Do you face any error while doing so.