cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
IgnacioV
Helper II
Helper II

masive messages

 

hello everyone!!

 

it is possible to send messages to users who have the bot added ?

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Super User
Super User

Hi @IgnacioV,

 

I got a first version of a working example.

 

The general idea is to list all users. Check which apps they installed. Match the results of that installed apps with the chatbot id in a filter array (compare it with the id from the teamsAppDefinition) and append the userPrincipal name of the user in an array if there is a match.

 

You could use the final array (after a join with a semi-colon character) in a Send an Email or probably other ways.

 

firstversionofflow_messagepeoplewhoinstalledbot.png

View solution in original post

2 REPLIES 2
Expiscornovus
Super User
Super User

Hi @IgnacioV,

 

Do you mean installed in Microsoft Teams? If so, I would say an option could be to use the Graph API with HTTP action and use the List apps installed for user method in a Power Automate flow:

https://docs.microsoft.com/en-us/graph/api/userteamwork-list-installedapps?view=graph-rest-1.0&tabs=...

 

But it does require some additional logic. You have to loop through all the user to list who has installed a specific app.

Expiscornovus
Super User
Super User

Hi @IgnacioV,

 

I got a first version of a working example.

 

The general idea is to list all users. Check which apps they installed. Match the results of that installed apps with the chatbot id in a filter array (compare it with the id from the teamsAppDefinition) and append the userPrincipal name of the user in an array if there is a match.

 

You could use the final array (after a join with a semi-colon character) in a Send an Email or probably other ways.

 

firstversionofflow_messagepeoplewhoinstalledbot.png

View solution in original post

Helpful resources

Announcements
Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Planning-build-bot-2-5-20-768x460.png

New Year’s Resolution - Build Conversational Bots!

Access all of the Power Virtual Agents learning resources and join the January learning challenge.

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Top Kudoed Authors
Users online (1,919)