Forum Discussion

kiran_subhedar's avatar
kiran_subhedar
Regular Visitor
8 years ago
Solved

QnA Embedding

Hello, I am following the online QnA example at https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html to embed QnA into a asp.net mvc intranet portal. I am using exactly the same co...
  • kiran_subhedar's avatar
    kiran_subhedar
    8 years ago

    I finally got it working by specifying tokenType as models.TokenType.Aad instead of models.TokenType.Embed. 

    var config = {
    type: 'qna',
    tokenType: models.TokenType.Aad,
    accessToken: txtAccessToken,
    embedUrl: txtEmbedUrl,
    datasetIds: [txtDatasetId],
    viewMode: models.QnaMode.Interactive,
    question: txtQuestion
    };