Share via

Working with MS Teams and Logic Apps logic

Anonymous
Jul 18, 2022, 1:42 PM

I am trying to figure out how can I send a message reply to a Teams channel when a specific keyword is received. I tried to do switch, but it gives me back foreach. The goal is to communicate with Dynatrace, upon a specific keyword pull information from Dynatrace and post it as a reply to a Teams channel message. Maybe you have any better advice? Thanks a lot!

221817-2022-07-18-16-38-01-window.png

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,370 questions
0 comments No comments
{count} votes

Accepted answer
  1. Kamlesh Kumar 3,866 Reputation points
    Jul 18, 2022, 3:12 PM

    Hi @Anonymous ,

    Welcome to Microsoft Q&A Platform. Thank you for the question.

    You can try to get message details before using the switch condition like below screenshot,

    Also, I just want to highlight the Known issues and limitations of Microsoft Teams connector, point number #12,

    When keywords are mentioned trigger only supports individual words. The trigger will not fire for phrases that are more than one word long.

    Rather than to use the MS Teams connector, I would suggest you to use the Graph APIs which can give you more options.

    https://learn.microsoft.com/en-us/graph/api/resources/channel?view=graph-rest-1.0

    221894-image.png

    Regards,
    Kamlesh Kumar

    Please don't forget to click on 205836-130616-image.png or upvote 205759-130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is How

    Want a reminder to come back and check responses? Here is how to subscribe to a Notification

    If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Anonymous
    Jul 26, 2022, 9:04 AM

    Alright, thanks guys for helping out with this. I have managed success fully to get the string that I can drop into switch statement. Took a while, but it's a great learning experience :)

    224794-2022-07-26-12-02-12-window.png

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.