Hello,
I have created a Power Automate flow that sends a message on Microsoft Teams through my Power Virtual Agent whenever a new item is created in a SharePoint list. Here's a screenshot of my flow:
The bot is appears correctly in the 'Bot' field:
When I run the flow, I have an error message: "{"id":"","messageLink":"","error":"Bot has not been published RequestId : [id]"
It says that the Bot has not been published even though I have indeed published it (check the screenshot below).
I have also connected the Bot in Microsoft Teams via the Channel:
Can someone help me please?
Sorry for the "French screenshots"... 😅, if you need more information please do not hesitate
Thank you in advance for your help.
Regards,
Doan
I created a bot in Teams today and it was able to send proactive messages. But the bot created in the web met the same problem like yours. I am finding a solution too.
Even I am also facing the same issue. Not sure if this has been resolved or there is work around it. Is there way to convert BOT created using Unified Canvas to Classic if that solves the problem. The Flow works fine I use the Classic bot Puiblished couple of months back.
That's a good question, I would recommend to test, but I believe even classic bots created after May 23, 2023 would have that issue.
Hello @HenryJammes,
Thank you for your reply.
Regarding your message below:
Your bot can only send proactive messages if:You create your bot in the Teams app.
You create a Classic bot.
You created your bot before May 23, 2023.
Just to be clear, if I create my bot (whether it's created from the Teams app or created as a classic bot), the bot won't be able to send proactive messages in any case because it was created after May 23, 2023, right?
Regards,
Doan
Hi @doan-nguyen
This is a known and documented behavior: Notify bot users in Teams with proactive messages - Power Virtual Agents | Microsoft Learn
Bots created or converted with the unified authoring canvas can't send proactive messages in Teams.
Your bot can only send proactive messages if:
You create your bot in the Teams app.
You create a Classic bot.
You created your bot before May 23, 2023.
This is something the PVA team is looking to address, but we don't have a target date to share yet.
Henry
Hello Pstork1,
Thank you for your reply.
I'm sorry, but I'm a bit confused by your response. You mentioned that it's possible to send a message to a channel or a person from the flow, but not to a bot?
Actually, what I'm aiming for is this: I have "Breaking news info" stored in a SharePoint list. When I add a new "Breaking news info" in this SharePoint list, I would like the bot to send a message on Teams to everyone in my organization with the details of the Breaking news.
Thank you in advance for your help.
Doan
The action to send a message as a Bot only works for a flow that is triggered from a bot. Since this flow is triggered by a SharePoint list the bot is not part of the context of the flow. You can send a message to a channel or a person from the flow, but not to a Bot because the Bot hasn't started when the flow runs.
Romain The Low-Code...
74
Pablo Roldan
61
stampcoin
10