Flow To Send Shift Timings End Message Notification To MS Teams Users

Introduction 

 
Hi guys, let's try to explore a beautiful scheduled flow which can send daily shift timing end to MS Teams user accounts using the adaptive card concept via JSON programming.
 
Prerequisites
  1. Min. E3 account in Microsoft 365 to have access in flow.microsoft.com
  2. Min. knowledge of building flows covering all concepts like triggers, actions, conditions, types of flows, etc.
Go to flow.microsoft.com to sign in >> go to left navigation menu >> + create >> select a scheduled flow >> give a flow name >>
give the daily repition option as 1 day >> click create.
 
Your new flow is created with the above-selected trigger.
 
Now start filling the Teams user account details as shown below by adding the actions as shown below with the relevant information, as explained in the below screenshots:
 
Flow To Send Shift Timings End Message Notification To MS Teams Users
 
Flow To Send Shift Timings End Message Notification To MS Teams Users 
Flow To Send Shift Timings End Message Notification To MS Teams Users
 
Use the below JSON code for sending a No Response required title based no action required button to send a Goodbye message to all the MS Teams User accounts.
  1. {  
  2.     "$schema""http://adaptivecards.io/schemas/adaptive-card.json",  
  3.     "type""AdaptiveCard",  
  4.     "version""1.2",  
  5.     "body": [{  
  6.         "type""TextBlock",  
  7.         "text""No Response Required",  
  8.         "weight""bolder",  
  9.         "size""large"  
  10.     }, {  
  11.         "type""TextBlock",  
  12.         "text""Automated Sign Off Message",  
  13.         "size""medium"  
  14.     }],  
  15.     "actions": [{  
  16.         "type""Action.ShowCard",  
  17.         "title""Good Night Mate!",  
  18.         "card": {  
  19.             "type""AdaptiveCard",  
  20.             "body": [{  
  21.                 "type""Input.Text",  
  22.                 "id""comment",  
  23.                 "isMultiline"true,  
  24.                 "placeholder""Enter your comment"  
  25.             }],  
  26.             "actions": [{  
  27.                 "type""Action.Submit",  
  28.                 "title""OK"  
  29.             }]  
  30.         }  
  31.     }]  
  32. }  
Repeat the above same process for one more Teams user account so that he/she also can receive a similar MS Teams adaptive card message via JSON using a Power Automation flow.
 
Flow To Send Shift Timings End Message Notification To MS Teams Users 
As per the above flow, it triggers an adaptive card message to the MS Teams user account, as per the scheduled time shown below:
 Flow To Send Shift Timings End Message Notification To MS Teams Users

Note

Above, post your own adaptive card as the flow bot to a user action has a limitation as it can only send an adaptive card message only to a single MS Teams user account. Hence, I created the same action twice for triggering two MS Teams user accounts.
 

Limitations

 
It has to be turned off on weekends to avoid unnecessary emails triggering and needs to be turned on Monday again.
 
Image signature can't be included using HTML coding or HRef tagging etc. as it's not supported currently but can do some configuration in the JSON for the next level of adaptive card messaging.
 
Finally, we have developed a daily mail triggering flow with an afternoon shift timings ending message to all the ms teams user accounts, establishing a quick timely notification with a cool greeting via an adaptive card mechanism.
 
Cheers!!