Welcome Guest ( Log In | Register )

4 Pages  1 2 3 > » Bottom

Outline · [ Standard ] · Linear+

 Can messages from Microsoft Teams be automatically, copied to a WhatsApp group?

views
     
TSplouffle0789
post Apr 24 2024, 09:57 PM, updated 2y ago

Regular
******
Senior Member
1,837 posts

Joined: May 2010

Can messages from Microsoft Teams be automatically copied to a WhatsApp group?






To automate copying messages from Microsoft Teams to a WhatsApp group using Microsoft Power Automate.






Technicians work on night shifts. No engineer work on night shift.
Night shift usually busy.

However, not all technicians are company staff; some are outsourced.


So now the company hopes that outsourced technician staff can see the Teams messages but customer do not want to add in their personal email to teams group. (since customers prefer to use Microsoft Teams over WhatsApp due to security issues).




Only company staff have company email address.

Outsource staff have personal email only.


user posted image

If any machine is down or there's an issue, some outsourced staff cannot see the messages from Microsoft Teams.



Setting up a custom HTTP request in Power Automate to send messages through the WhatsApp Business API involves several steps. Here’s a detailed guide on how to achieve this
Step Description
-------------------
1. Create a New Flow Sign in to [Power Automate](https://flow.microsoft.com). Click on "Create" and select "Automated flow".
2. Add a Trigger Choose "When a new message is posted in a chat or channel" as the trigger. Select the Team and Channel from Microsoft Teams to monitor.
3. Add an Action Click on "New step" and select "HTTP" under the "Standard connectors".
4. Configure the HTTP Request Set the method to POST. Enter the URL for the WhatsApp Business API endpoint (`https://api.whatsapp.com/v1/messages`).
5. Set Headers Add headers:<br>- **Authorization**: Bearer {Your_Access_Token}<br>- **Content-Type**: application/json
6. Set Request Body Construct JSON payload:<br>

```json
{
"to": "+1234567890",
"type": "text",
"text": {
"body": "@{triggerOutputs()?['body']?['content']}"
}
}

7. Save and Test Your Flow Save your flow with a meaningful name. Test by posting a message in Microsoft Teams channel and verify message sending to WhatsApp.



QUOTE
Explanation of Step 6 JSON Payload:

to: Replace +1234567890 with the recipient's WhatsApp number in international format.


type: Specifies the type of message, which can be text, image, audio, etc.

message.content.body:

Uses @{triggerBody()?['body']} to extract the message content from the Microsoft Teams trigger.
Adjust ['body'] based on the actual structure of your Teams message payload.        
                
You can copy the markdown above and use it to guide you through setting up your flow in Power Automate.



Adjust the placeholders ({Your_Access_Token} and +1234567890) with your actual WhatsApp Business API access token and recipient's WhatsApp number respectively. This table provides a structured format to follow each step clearly.








Step Description
----------------------------------------------------------------
1 **Set Up Twilio for WhatsApp**
- Sign up for a Twilio account and verify your number.
- Enable the WhatsApp Sandbox in Twilio to get a sandbox number for testing.
- Note the Account SID and Auth Token from your Twilio Console.
2 **Create a Power Automate Flow**
**Trigger**: Use the Microsoft Teams connector to trigger the flow when a new message is posted to a channel.
1. Go to [Power Automate](https://flow.microsoft.com).
2. Click on "Create" and choose "Automated flow".
3. Search for and select "Microsoft Teams" as the trigger.
4. Choose "When a new message is added to a channel" as the specific trigger.
5. Configure the Teams and channel details.
**Action**: Use an HTTP request to send the message to the Twilio API.
1. Add a new step and search for "HTTP" action.
2. Configure the HTTP action as follows:
- **Method**: POST
- **URI**: `https://api.twilio.com/2010-04-01/Accounts/{AccountSID}/Messages.json`
- **Headers**:
- `Authorization`: Basic (Base64 encoded AccountSID:AuthToken)
- `Content-Type`: application/x-www-form-urlencoded
- **Body**:
```plaintext
To=whatsapp:{Your_WhatsApp_Group_Number}
From=whatsapp:{Your_Twilio_WhatsApp_Number}
Body=@{triggerOutputs()?['body']['message']?['content']}
```
Replace `{AccountSID}`, `{Your_WhatsApp_Group_Number}`, and `{Your_Twilio_WhatsApp_Number}` with your actual Twilio Account SID, WhatsApp group number, and Twilio sandbox number respectively.
3 **Test the Flow**
- Post a message in the Microsoft Teams channel to test the flow.
- Verify that the message appears in your WhatsApp group.
**Notes**:
- For a production setup, you need to get your WhatsApp number approved by WhatsApp via Twilio.
- Ensure your Power Automate and Twilio accounts are correctly configured and have the necessary permissions and credits.
**Additional Considerations**:
- You may want to add error handling steps in Power Automate to manage any issues with the HTTP requests.
- Consider the security and privacy implications of forwarding messages from Teams to WhatsApp.



user posted image

This post has been edited by plouffle0789: Jun 27 2024, 07:24 AM
jmas
post Apr 24 2024, 09:59 PM

I can edit title???
*****
Junior Member
830 posts

Joined: Mar 2010
cannot create company email for outsource staff?
TSplouffle0789
post Apr 24 2024, 10:00 PM

Regular
******
Senior Member
1,837 posts

Joined: May 2010

QUOTE(jmas @ Apr 24 2024, 09:59 PM)
cannot create company email for outsource staff?
*
Cannot.

Any other solution?
ahhann
post Apr 24 2024, 10:01 PM

Lim Peh
****
Senior Member
545 posts

Joined: Mar 2006
From: The Weirdo River O_o


Look out for WhatsApp connector in Power Automated. It should be available to automate the message sending from Teams to WhatsApp.
jmas
post Apr 24 2024, 10:04 PM

I can edit title???
*****
Junior Member
830 posts

Joined: Mar 2010
QUOTE(plouffle0789 @ Apr 24 2024, 10:00 PM)
Cannot.

Any other solution?
*
then need go long route, as below

QUOTE(ahhann @ Apr 24 2024, 10:01 PM)
Look out for WhatsApp connector in Power Automated. It should be available to automate the message sending from Teams to WhatsApp.
*
TSplouffle0789
post Apr 24 2024, 10:07 PM

Regular
******
Senior Member
1,837 posts

Joined: May 2010

QUOTE(jmas @ Apr 24 2024, 10:04 PM)
then need go long route, as below
*
user posted image




Go to power automate and create a new flow

Actions that we need to add in the flow

Trigger: When a HTTP request is received

Second action: Parse Json

Third action: response


May I know what is second actions and third actions?


Can change or not?
TSplouffle0789
post Apr 24 2024, 10:09 PM

Regular
******
Senior Member
1,837 posts

Joined: May 2010

QUOTE(ahhann @ Apr 24 2024, 10:01 PM)
Look out for WhatsApp connector in Power Automated. It should be available to automate the message sending from Teams to WhatsApp.
*
user posted image




Go to power automate and create a new flow

Actions that we need to add in the flow

Trigger: When a HTTP request is received

Second action: Parse Json

Third action: response


May I know what is second actions and third actions?


Can change or not?


RagingCandy
post Apr 24 2024, 11:19 PM

Getting Started
**
Junior Member
205 posts

Joined: Sep 2014
Ask ChatGPT to generate the code for you la. Adui hai...
kembayang
post Apr 24 2024, 11:22 PM

Regular
******
Senior Member
1,441 posts

Joined: Oct 2017
QUOTE(jmas @ Apr 24 2024, 09:59 PM)
cannot create company email for outsource staff?
*
This is the straight forward easiest solution
Axell
post Apr 24 2024, 11:28 PM

Looking for FL
*****
Senior Member
920 posts

Joined: Jun 2007
From: Somewhere in Malaysia


Why using dinosaur era of ways of working to report about machines down or issues?

Get a ticketing system, start from cheap and slowly grow.
SUSGHBZDK
post Apr 24 2024, 11:35 PM

Getting Started
**
Junior Member
173 posts

Joined: Jun 2012

QUOTE(kembayang @ Apr 24 2024, 11:22 PM)
This is the straight forward easiest solution
*
thats subjective.
for my place its easier to build a rocket and land a malaysian on the moon before im able to get ahold of IT.
check first if teams/whatsapp have api that can do all this.
no api then selenium, lol (i will just say not possible)

This post has been edited by GHBZDK: Apr 24 2024, 11:38 PM
TSplouffle0789
post Apr 24 2024, 11:39 PM

Regular
******
Senior Member
1,837 posts

Joined: May 2010

QUOTE(RagingCandy @ Apr 24 2024, 11:19 PM)
Ask ChatGPT to generate the code for you la. Adui hai...
*
# Action Details
------------------------------------------------------------------------------------------------------------------------------------------------
1 Create a Flow in Power Automate Log in to Power Automate, click on "Create," and choose the appropriate flow type.
2 Choose trigger Select the trigger that will initiate the flow, such as "When a new message is posted in a channel" in Microsoft Teams.
3 Set up conditions or filters if needed Optionally add conditions or filters to specify when the flow should be triggered.
4 Add an Action Click on "+ New step" and choose the action to perform after the trigger.
5 Select the WhatsApp connector Search for and select the WhatsApp connector from the available connectors.
6 Choose the action Select the action you want to perform with WhatsApp, such as "Send message."
7 Configure recipient's WhatsApp number and message content Enter the recipient's WhatsApp number and the message content to be sent.
8 Test the action Run a test to ensure that the action is working as expected.
9 Save and name the flow Save the flow and give it a descriptive name for future reference.
10 Test the flow by triggering it Post a message in Microsoft Teams to trigger the flow and test its functionality.
11 Review and adjust as necessary Review the flow settings and make any necessary adjustments or refinements.
12 Activate the flow to run automatically Once satisfied with the flow, activate it to run automatically as needed.



Can use this method?

Chatgpt said no need programming code

This post has been edited by plouffle0789: Apr 24 2024, 11:40 PM
TSplouffle0789
post Apr 24 2024, 11:41 PM

Regular
******
Senior Member
1,837 posts

Joined: May 2010

QUOTE(GHBZDK @ Apr 24 2024, 11:35 PM)
thats subjective.
for my place its easier to build a rocket and land a malaysian on the moon before im able to get ahold of IT.
check first if teams/whatsapp have api that can do all this.
no api then selenium, lol (i will just say not possible)
*
# Action Details
1 Create a Flow in Power Automate Log in to Power Automate, click on "Create," and choose the appropriate flow type.
2 Choose trigger Select the trigger that will initiate the flow, such as "When a new message is posted in a channel" in Microsoft Teams.
3 Set up conditions or filters if needed Optionally add conditions or filters to specify when the flow should be triggered.
4 Add an Action Click on "+ New step" and choose the action to perform after the trigger.
5 Select the WhatsApp connector Search for and select the WhatsApp connector from the available connectors.
6 Choose the action Select the action you want to perform with WhatsApp, such as "Send message."
7 Configure recipient's WhatsApp number and message content Enter the recipient's WhatsApp number and the message content to be sent.
8 Test the action Run a test to ensure that the action is working as expected.
9 Save and name the flow Save the flow and give it a descriptive name for future reference.
10 Test the flow by triggering it Post a message in Microsoft Teams to trigger the flow and test its functionality.
11 Review and adjust as necessary Review the flow settings and make any necessary adjustments or refinements.
12 Activate the flow to run automatically Once satisfied with the flow, activate it to run automatically as needed.





Do you means this method?

This post has been edited by plouffle0789: Apr 24 2024, 11:43 PM
brkli
post Apr 24 2024, 11:50 PM

On my way
****
Junior Member
592 posts

Joined: Oct 2018
use pager duty.
nasiputih
post Apr 24 2024, 11:52 PM

Getting Started
**
Junior Member
256 posts

Joined: May 2014

QUOTE(plouffle0789 @ Apr 24 2024, 10:00 PM)
Cannot.

Any other solution?
*
make them internal staff. then can create company email.
mrhulk
post Apr 25 2024, 12:00 AM

Getting Started
**
Junior Member
131 posts

Joined: Sep 2009
From: Behind you



use email....creating new system is headache unless you want to sell it
LaiN87
post Apr 25 2024, 12:16 AM

Nom nom nom...
******
Senior Member
1,321 posts

Joined: Jan 2003
From: メラカ /b/PowerLvl:Over9000!


Must use WhatsApp? It makes it more difficult.
With telegram you can easily make a bot and integrate it in Flow.

https://www.linkedin.com/pulse/custom-ms-fl...abeth-akinfieva
SUSGHBZDK
post Apr 25 2024, 12:31 AM

Getting Started
**
Junior Member
173 posts

Joined: Jun 2012

QUOTE(plouffle0789 @ Apr 24 2024, 11:39 PM)
| # | Action                                                    | Details                                                                        |
------------------------------------------------------------------------------------------------------------------------------------------------
1 Create a Flow in Power Automate                            Log in to Power Automate, click on "Create," and choose the appropriate flow type.
2 Choose trigger                                            Select the trigger that will initiate the flow, such as "When a new message is posted in a channel" in Microsoft Teams.
3 Set up conditions or filters if needed                    Optionally add conditions or filters to specify when the flow should be triggered.
4 Add an Action                                              Click on "+ New step" and choose the action to perform after the trigger.       
5 Select the WhatsApp connector                              Search for and select the WhatsApp connector from the available connectors.     
6 Choose the action                                          Select the action you want to perform with WhatsApp, such as "Send message."     
7 Configure recipient's WhatsApp number and message content  Enter the recipient's WhatsApp number and the message content to be sent.       
8 Test the action                                            Run a test to ensure that the action is working as expected.                     
9 Save and name the flow                                    Save the flow and give it a descriptive name for future reference.             
10 Test the flow by triggering it                            Post a message in Microsoft Teams to trigger the flow and test its functionality.
11 Review and adjust as necessary                            Review the flow settings and make any necessary adjustments or refinements.     
12 Activate the flow to run automatically                    Once satisfied with the flow, activate it to run automatically as needed.       
Can use this method?

Chatgpt said no need programming code
*
im programmer so i will always opt for code.
power automate can do alot of thing, you have to look.
SUSxiaojohn
post Apr 25 2024, 01:07 AM

Getting Started
**
Junior Member
229 posts

Joined: Feb 2022
Crazy. If your company allow you to do this, it means your company is running a monkey business.

Kesian your client entrusted your company.
SUSxiaojohn
post Apr 25 2024, 01:11 AM

Getting Started
**
Junior Member
229 posts

Joined: Feb 2022
Create one general company email for night shift team (those who outsourced) loh, all people get the log in and password.

Why you want to go a big round?

Nowadays Gen Z and Gen Alpha is better quality compare to those Gen X and Y.

4 Pages  1 2 3 > » Top
 

Change to:
| Lo-Fi Version
0.0150sec    0.47    5 queries    GZIP Disabled
Time is now: 24th December 2025 - 08:06 AM