Notifications
Announcements
API : https://powerva.microsoft.com/api/botmanagement/v1/directline/directlinetoken?botId=525a5cab-abac-4294-ba69-888b02&tenantId=b0b120fd-1701-4d59-9e7d-9cd
Response :
{ "ErrorCode": 4103, "ErrorMessage": "ItemWithIdNotFound", "DiagnosticsMessage": null, "ErrorInfo": null }
Hi @Vicky001 In the link you posted, it appears that the TenantId is truncated. When I replace the TenantId with what I believe to be the full TenantId and with a BotId I see associated with the Tenant in the logs, the API call returns.
-- Mike Bonincontri
I tried with full tenantId and BotId, But for security purposes, I am removing some characters from the ID.
Hi, I am also facing same issue. Is any one help me about this?
Hi Sir, I tried pass right TenantId & BotId. But I am facing same issue.
const styleOptions = {// Add styleOptions to customize web chat canvashideUploadButton: false};
// Add your BOT ID belowvar BOT_ID = "MyBOTID";var Tenant_ID = "MyTenantID "
var theURL = "https://powerva.microsoft.com/api/botmanagement/v1/directline/directlinetoken?botId=" + BOT_ID + "&tenantId=" + Tenant_ID;
fetch(theURL).then(response => response.json()).then(conversationInfo => {window.WebChat.renderWebChat({directLine: window.WebChat.createDirectLine({token: conversationInfo.token,}),styleOptions},document.getElementById('webchat'));}).catch(err => console.error("An error occurred: " + err));
Error:
Hi, needs to have query string parameters to assign values to some bot variables. Is it possible?. If anybody have idea, please help me and guide me. Thanks.
Hi @GnanavelBala
For me the Bot id is the one highlighted in green.
And in the code you need to type the bot id in this below format.
Quick question, why don't you use the token endpoint URL available in PVA to generate the token?
I.e. this one:
Yes. I used token endpoint and able to connect. Now I am trying to pass query parameter to bot variable. Is any one tried this?
Hi Friends, I needs to have query string parameters to assign values to some bot variables. Is it possible?. If anybody have idea, please help me and guide me. Thanks.
Once I load my chabot using token endpoint URL, the start conversation topic is not working.
And this one my bot topic.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 255 Super User 2025 Season 2
Romain The Low-Code... 205 Super User 2025 Season 2
S-Venkadesh 101 Moderator