Get mail body send via LINE Notify with Power Automate Cloud

by

Register LINE Notify

First of all, you have to register LINE Notify account.

LINE Notify homepage

Press Log in at the top right corner of homepage, then enter your email address and password and press log in.

Fill out email address, password and press log in

Click your name at the top right corner of homepage and click “My page”

Go to “My page”

Press “Generate token”

Generate token

Enter a token name and select a chat to send notifications to (you can use 1-on-1 chat with LINE Notify for test the flow)

Fill out token name and select a chat to send notification to

Then press “Generate token”

Generate token

Then copy your token

Copy token

Create Flow

Go to https://make.powerautomate.com/ Click “New flow” > “Automated cloud flow”

Create automated cloud flow

Name the flow and select trigger “When a new email arrives”.

For this article I’ll select “When a new email arrives (V3)” because I use work or school account (Office 365 account).

Set condition for email trigger as per your requirements. for this article I use Subject filter as “test line”

Set trigger conditions

Add “Html to text” action and select dynamic content “Body” from the previous trigger.

Select dynamic content

Add “Initialize variable” action name it as “token”, type “String”, and paste the token that you got from generate token.

Set token as variable

Add “HTTP” action and set value as per below image:

  • Method: POST
  • URI: https://notify-api.line.me/api/notify
  • Headers key 1: Content-Type
  • Headers value 1 : application/x-www-form-urlencoded
  • Headers key 2: Authorization
  • Headers value 2: Bearer @{variables(‘token’)}
  • Body: message=@{body(‘Html_to_text’)}
Set HTTP’s parameters

Test flow

Send mail

Send mail for test flow

See result in LINE

Result in LINE

Hope this article will be useful to the people who just starting to study Power Automate Cloud, if you have any questions about this article, you can comment and ask section below.

Don’t forget to press like, share, subscribe for good articles from now on (press the subscribe button and you will receive a mail confirming your subscription to confirm again as well).

Until we meet again, Happy Automating!! 😁

Did You Enjoy this Article?

Subscription to get new articles sent to your inbox each week for FREE

Question?

If you have any questions or feedback about this article please leave a message in the comments section below.


Comments

Leave a comment

Subscribe to get new articles sent to your inbox each week for FREE