I’m using the Microsoft Teams JS SDK to open a dialog and submit data back to the parent tab.
Inside the dialog I have:
import { dialog } from "@microsoft/teams-js";
async function submit() {
await dialog.url.submit({
result: {
name: "test"
}
});
}
The submit() call completes without throwing an exception, but the dialog remains open and the parent tab does not receive the expected result.
What is the correct way to submit a result from a Teams dialog using the current Teams JS SDK? Does the parent need to register a callback before opening the dialog, or is there another required configuration?
SDK version: @microsoft/teams-js 2.x
Host: Microsoft Teams desktop
I’m using the Microsoft Teams JS SDK to open a dialog and submit data back to the parent tab.
Inside the dialog I have:
The submit() call completes without throwing an exception, but the dialog remains open and the parent tab does not receive the expected result.
What is the correct way to submit a result from a Teams dialog using the current Teams JS SDK? Does the parent need to register a callback before opening the dialog, or is there another required configuration?
SDK version: @microsoft/teams-js 2.x
Host: Microsoft Teams desktop