My location with instant cloud flow

by

This article will discuss instant cloud flows, focusing on the trigger ‘Manually trigger a flow’.

Name the flow, select trigger and press create button.

Name the flow e.g. I’m here

Press + icon and add an action

Add action

Search action ‘Current time’

Add action current time

Next, add the action ‘Convert time zone’ insert the dynamic content ‘Current time’ and select the destination time zone and time format

Add action convert time zone

Next, add the action ‘Post message in a chat or channel’, select post as, post in, team, channel and message as per below code block

<p>Current Time @{formatDateTime(body('Convert_time_zone'),'g')}<br>
<a href="https://www.google.com/maps/search/?api=1&query=@{triggerBody()['location']['coordinates']['latitude']},@{triggerBody()['location']['coordinates']['longitude']}">Map</a></p>

The code block demonstrates a Google Map location search using latitude and longitude coordinates, which are replaced with dynamic content from the trigger. You can see Maps URLs Guide here

Click toggle code view before paste the message from above code block

Run the flow and check the results by navigating to the team channel.

Team channel

The Flow bot will post a message with a hyperlink to the Google Map location.

Message with hyperlink to Google Map location

The image below shows the Google Map location of 3 different location.

The first image shows my home (censored for privacy).

Google Map location (My Home)

The second image shows the location near the BTS Skytrain. I pressed the button on the BTS Skytrain as it departed from Asok station heading to Nana station.

The third image shows the location near the Bangkok Art and Culture Centre (BACC). I pressed the button while I was at BACC.

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