If your organization uses Yammer to drive information sharing and employee knowledge transfer, you have a potential treasure trove of great content. But staying up-to-date on Yammer conversations can be tough, particularly when you’re running from meeting to meeting. It’s easy to miss key Yammer posts, even if you subscribe to email notifications.
Fortunately, Microsoft Flow can help! Let’s say you want to monitor a particular Yammer group for one or more “watch words.” When a message that contains the watch word is posted on Yammer, you’d like Microsoft Flow to send you an email notification. This functionality enables you to audit Yammer groups for the content you’re most interested in.
Here’s an overview of what this flow looks like:
And here are the steps to re-create the flow:
- Create a new flow from blank (aka not from a template).
- Add the trigger When there is a new message in a group.
- In the Group Id field, select the name of the Yammer group you want to monitor.
Note: This flow doesn’t monitor multiple Yammer groups at once; it triggers to run when a new message is posted in a single Yammer group. If you’d like to run this watch word flow across multiple Yammer groups, you’ll need to copy your completed flow and create a new flow for each group you want to monitor. The process for copying your finished flow is provided in step 15.
- In the Network Id field, select the name of your Yammer network.
- If you’d like your watch word email notification to include the name of the person that posted the Yammer message, add the Get user details action. In the User ID field, add the Message List Message Sender field.
- Add the Get my profile action. This action obtains the SMTP email address for the current user (e.g. email@example.com). You’ll use this SMTP email address to configure your email notification.
- Add a Condition action.
- In the Value field, add the Message List Message Body Text field.
- Change the is equal to field to contains.
- Type your watch word(s) in the Choose a value field. In the example flow shown above, my watch word is PowerApps.
- Add an action in the If yes box. Since I wanted to send an email notification when my watch word was used, I added the email action.
- In the To field of your email, insert the Get My Profile Mail dynamic content.
Note: You may need to select “See more” under the Get my profile header to see the Mail content.
- Add additional details for your notification (e.g. subject line, email verbiage, etc.).
- Save and test your flow.
- Optional. If you’d like to set up your watch word flow for a second Yammer group, follow these additional steps:
- Go to your flow’s information page.
- Click on the More dropdown and select Save As.
- Specify a name for your copied flow and click Save.
- Return to your My Flows page and edit your newly-copied flow. Update the Yammer group identified in your trigger, save the flow, and turn on the flow.
- Repeat step 15 for each Yammer group you want to monitor.
Now that my flow is built, I receive an email notification like the one shown below each time the watch word PowerApps is mentioned in my Microsoft Flow Yammer group:
Sharing your new flow:
Now that you’ve created your flow, it’s time to think about sharing it with others in your organization.
- Check out my post on the new Send a copy feature in Microsoft Flow. With Send a copy, you can quickly share a copy of your flow with users and security groups in your Office 365 tenant.
- Support Flow adoption with the creation of an internal organization-level template gallery. The gallery will enable users to share and re-use flows internally.
Credits (and a few words of encouragement):
If you’re working with Microsoft Flow and are having a hard time figuring out how to build the workflows you need, don’t despair! When I first started trying to build this “watch word” flow, I got completely stuck. I couldn’t figure out how to build it without complicated formulas or JSON. Many thanks to Jon Levesque, Marcel Haas, and many others on Twitter for jumping in and teaching me a better way to go about it!