Currently, I am wanting to use the bot to finder invoice&vendor info from Business Central and post payments in BC.
I have users in the Azure AD list but not in the Business Central App.
I have created a flow that does that through using Auth Token in the Azure AD, which i need to generate each time through postman.
like this:
However, I want to use the flow on a chatbot.
Right now I am authenticating users through the authentication in power virtual agent and it works. I am able to get the user information.
However, I am unable to get the invoice information anymore:
Right now the azure app permission for bc looks like this:
I am wondering what would be the best way to handle this? To let user login to the Azure account and be able to get the correct information out of Business Central in the chatbot.
Also, how would I best handle permissions(like users restricted to their company's information), is that best done through azure permission group or just through getting user information and setting the query when getting the invoice?
Thank you!
stampcoin
8
Artur Stepniak
5
Super User 2025 Season 1
Ekta Gupta
4