Automate your workflow with Microsoft Power Automate

The most tedious part of development is doing the same tasks over and over again. Don’t you feel bored having to mention someone on Slack when they get assigned a Github Issue, or having to send an email to your newsletter when you post a tweet.

Sure,…


This content originally appeared on DEV Community and was authored by arnu515

The most tedious part of development is doing the same tasks over and over again. Don't you feel bored having to mention someone on Slack when they get assigned a Github Issue, or having to send an email to your newsletter when you post a tweet.

Sure, you can setup integrations, webhooks and CI jobs to do these tasks, but they're often tedious, require signups to hundreds of services, and all of them might not have the same steps.

Enter Microsoft Power Automate, also called Microsoft Flow, which allows you to automate almost everything in your tech stack. Want to send a message on Slack or Teams, sure, want to SMS a number with Twilio, you can do that too. It also has many listeners, like when a new Tweet is posted, or when a Github Issue is assigned to you.

In this tutorial, we'll take a look at how we can automate a few common tasks with Microsoft Flow.

Prerequisites

  • An Office365 Microsoft Account
  • Accounts for the services we'll be automating (Github, Slack, etc).

Flow 1 - Mail me when a Github Issue is assigned to me

First, create a new Automated Cloud flow and give it a name.

Add the When an issue is assigned to me trigger from Github. You will now be asked to sign in to Github, which you should do.

Next, add the Mail action, which uses Sendgrid under the hood.

How your flow looks

You can notice that I've added some dynamic elements that were provided to me by the Github Trigger.

You can add more things to your flow, for example, add an item on Microsoft Todo, create a Trello card, or message yourself on Slack.

Added a Todo action

Click Save when done, and you will now be emailed whenever an issue's been assigned to you!

Flow 2 - Post your website's status to your Twitter everyday at 6 AM

Create a Scheduled Cloud Flow, since this event is based on time.

Make sure the date is set to this date, and the time is set to 6:00 AM.

Also set the task to repeat every 1 day. See the below image if you get confused.

Flow creation dialog

Add a HTTP action that'll query your website's status page. My website uses Cachet to display its status, so I'll tailor my flow to Cachet's API response.

HTTP action

Next, you need to parse the data down to access the status_name field in the JSON response.

Data actions

Finally, you can tweet out the status of the website. You'll need to sign in to Twitter for this flow to work.

Tweet action

Click Save when done, and now, at 6 AM daily, your followers will be notified of your website's status.

Conclusion

See how easy it is to automate the small things? The best part is that Microsoft Flow is included with the Office365 subscription, so along with Excel, Word and PowerPoint, you also get this monster of an automation tool that really, nobody cares about! So go ahead and share this article with your friends, so they can also use this wonderful tool.


This content originally appeared on DEV Community and was authored by arnu515


Print Share Comment Cite Upload Translate Updates
APA

arnu515 | Sciencx (2021-07-12T16:50:41+00:00) Automate your workflow with Microsoft Power Automate. Retrieved from https://www.scien.cx/2021/07/12/automate-your-workflow-with-microsoft-power-automate/

MLA
" » Automate your workflow with Microsoft Power Automate." arnu515 | Sciencx - Monday July 12, 2021, https://www.scien.cx/2021/07/12/automate-your-workflow-with-microsoft-power-automate/
HARVARD
arnu515 | Sciencx Monday July 12, 2021 » Automate your workflow with Microsoft Power Automate., viewed ,<https://www.scien.cx/2021/07/12/automate-your-workflow-with-microsoft-power-automate/>
VANCOUVER
arnu515 | Sciencx - » Automate your workflow with Microsoft Power Automate. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/07/12/automate-your-workflow-with-microsoft-power-automate/
CHICAGO
" » Automate your workflow with Microsoft Power Automate." arnu515 | Sciencx - Accessed . https://www.scien.cx/2021/07/12/automate-your-workflow-with-microsoft-power-automate/
IEEE
" » Automate your workflow with Microsoft Power Automate." arnu515 | Sciencx [Online]. Available: https://www.scien.cx/2021/07/12/automate-your-workflow-with-microsoft-power-automate/. [Accessed: ]
rf:citation
» Automate your workflow with Microsoft Power Automate | arnu515 | Sciencx | https://www.scien.cx/2021/07/12/automate-your-workflow-with-microsoft-power-automate/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.