Welcome Guest ( Log In | Register )

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.
unknown_2
post Apr 25 2024, 01:15 AM

On my way
****
Junior Member
573 posts

Joined: Mar 2012


from my personal experience using power automate, even in various other task, it's a hit or miss.
majority of the time work as intended, but there are also high number of times where it just doesn't work.

anyhow, ask your company dont so kiamsap la.
my company white contract also gov them M365 license.
TSplouffle0789
post Apr 25 2024, 03:07 AM

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

Joined: May 2010

QUOTE(xiaojohn @ Apr 25 2024, 01:11 AM)
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.
*
Now is the customer do not want to add those outsource staff to the microsoft teams.....

And the company like to use outsource staff
TSplouffle0789
post Apr 25 2024, 03:10 AM

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

Joined: May 2010

QUOTE(unknown_2 @ Apr 25 2024, 01:15 AM)
from my personal experience using power automate, even in various other task, it's a hit or miss.
majority of the time work as intended, but there are also high number of times where it just doesn't work.

anyhow, ask your company dont so kiamsap la.
my company white contract also gov them M365 license.
*
Now is not license problem.



Customer do not want to use whatsapp.

They want to use microsoft teams to inform machine down ...





"Secure cloud services:

Teams
OneDrive
SharePoint
Exchange
Word
Excel
PowerPoint
Outlook"

This post has been edited by plouffle0789: Apr 25 2024, 03:11 AM
TSplouffle0789
post Apr 25 2024, 03:11 AM

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

Joined: May 2010

QUOTE(LaiN87 @ Apr 25 2024, 12:16 AM)
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
*
You tried this method no issue?
TSplouffle0789
post Apr 25 2024, 03:13 AM

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

Joined: May 2010

QUOTE(GHBZDK @ Apr 25 2024, 12:31 AM)
im programmer so i will always opt for code.
power automate can do alot of thing, you have to look.
*
// C# code example for Power Automate flow

using System;

class Program
{
static void Main()
{
// Trigger: Microsoft Teams message
string teamsMessage = "This is a message from Microsoft Teams.";

// Action: Send message to WhatsApp
string whatsappRecipient = "1234567890"; // WhatsApp number
string whatsappMessage = "New message from Microsoft Teams: " + teamsMessage;

// Execute action: Send message to WhatsApp
SendMessageToWhatsApp(whatsappRecipient, whatsappMessage);

Console.WriteLine("Flow executed successfully!");
}

static void SendMessageToWhatsApp(string recipient, string message)
{
// Logic to send message to WhatsApp connector
Console.WriteLine("Sending message to WhatsApp: Recipient - " + recipient + ", Message - " + message);
// Actual implementation would use the WhatsApp connector in Power Automate
}
}



May I know is this code ok?
TSplouffle0789
post Apr 25 2024, 11:40 PM

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

Joined: May 2010

Anyone know?
unknown_2
post Apr 26 2024, 12:05 AM

On my way
****
Junior Member
573 posts

Joined: Mar 2012


QUOTE(plouffle0789 @ Apr 25 2024, 03:10 AM)
Now is not license problem.
Customer do not want to use whatsapp.

They want to use microsoft teams to inform machine down ...
"Secure cloud services:

Teams
OneDrive
SharePoint
Exchange
Word
Excel
PowerPoint
Outlook"
*
yala.
if your company assign M365 license for your contract staff, then they can use company teams & customers can add them official teams group.
differ
post Apr 26 2024, 12:24 AM

Casual
***
Junior Member
404 posts

Joined: Dec 2008
In the first place, does your customer even allow you to do this or not? Since they have already voiced their security concerns, you trying to do something behind their back could get you in trouble.

Secondly, WhatsApp Business have API integration with Teams, no?
brkli
post Apr 26 2024, 12:47 AM

On my way
****
Junior Member
592 posts

Joined: Oct 2018
QUOTE(plouffle0789 @ Apr 25 2024, 03:07 AM)
Now is the customer do not want to add those outsource staff to the microsoft teams.....

And the company like to use outsource staff
*
lel.. if the "outsource staff" have company email.. and all contract are in place. what the customer have a say in that and why customer need to know your staff is outsource or what?

do u also need to tell your customer how many times u go to the toilet in a day?
patienceGNR
post Apr 26 2024, 01:00 AM

♥ Ride All Day ♥
*******
Senior Member
2,058 posts

Joined: Mar 2011
From: Today: 9:03 AM



QUOTE(plouffle0789 @ Apr 24 2024, 10:07 PM)
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?
*
If you don't know how to parse and trigger you just leave it to IT/product/Devs. You don't need to always bao shan bao hai. It obviously isn't your field of expertise.

This post has been edited by patienceGNR: Apr 26 2024, 01:00 AM
differ
post Apr 26 2024, 01:03 AM

Casual
***
Junior Member
404 posts

Joined: Dec 2008
QUOTE(brkli @ Apr 26 2024, 12:47 AM)
lel.. if the "outsource staff" have company email.. and all contract are in place. what the customer have a say in that and why customer need to know your staff is outsource or what?

do u also need to tell your customer how many times u go to the toilet in a day?
*
Supply chain risk.

Yes, customers have a right to know if you outsource the work, and what checks and controls you have put in place. Especially so if that role has access to the customer's systems or data.
TSplouffle0789
post Apr 26 2024, 01:26 AM

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

Joined: May 2010

QUOTE(differ @ Apr 26 2024, 01:03 AM)
Supply chain risk.

Yes, customers have a right to know if you outsource the work, and what checks and controls you have put in place. Especially so if that role has access to the customer's systems or data.
*
We just change some parts.
.


No access any data.

We only saw production lot number


This post has been edited by plouffle0789: Apr 26 2024, 01:27 AM
differ
post Apr 26 2024, 01:43 AM

Casual
***
Junior Member
404 posts

Joined: Dec 2008
QUOTE(plouffle0789 @ Apr 26 2024, 01:26 AM)
We just change some parts.
.
No access any data.

We only saw production lot number
*
Not for you to decide whether it is confidential or not. It is for the data owner (customer) to decide.

Cover your ass. Get written confirmation from customer that there is no confidential data and there is no impact in the event of disclosure.
TSplouffle0789
post Apr 26 2024, 01:50 AM

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

Joined: May 2010

QUOTE(differ @ Apr 26 2024, 01:43 AM)
Not for you to decide whether it is confidential or not. It is for the data owner (customer) to decide.

Cover your ass. Get written confirmation from customer that there is no confidential data and there is no impact in the event of disclosure.
*
The message mostly like that one...



Temp ramp up to **** /, ******, **** both sides xxx flow verified and accepted new CF.


Temp ramp up to *** and Hot leak in progress.


PFU with Hot leak and xxx split.



Which one you think is confidential one?


Now engineers also use Text Fairy (OCR Text Scanner) to extract words and send the extracted messages on WhatsApp. [The company provides internal staff with iPhones, but many apps are locked].


Therefore, they can only screenshot the customer instructions and use OCR text scanner to extract all the words and send them to the outsourced technicians.

This post has been edited by plouffle0789: Apr 26 2024, 01:50 AM
differ
post Apr 26 2024, 01:52 AM

Casual
***
Junior Member
404 posts

Joined: Dec 2008
QUOTE(plouffle0789 @ Apr 26 2024, 01:50 AM)
The message mostly like that one...
Temp ramp up to **** /, ******, **** both sides xxx flow verified and accepted new CF.
Temp ramp up to *** and Hot leak in progress.
PFU with Hot leak and flow split.
Now engineers also use Text Fairy (OCR Text Scanner) to extract words and send the extracted messages on WhatsApp. [The company provides internal staff with iPhones, but many apps are locked].
Therefore, they can only screenshot the customer instructions and use OCR text scanner to extract all the words and send them to the outsourced technicians.
*
I already advised you how to cover your ass. Like I said before, who are you to decide whether the data is confidential or not?

This is not PII or PHI that has a specific definition.

But if you stubborn want to argue, then be my guest. Pray that shit doesn't hit the fan and they look for a scapegoat.

Gen Y and Gen Z really not street smart at all.

This post has been edited by differ: Apr 26 2024, 01:54 AM
TSplouffle0789
post Apr 26 2024, 02:00 AM

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

Joined: May 2010

QUOTE(differ @ Apr 26 2024, 01:52 AM)
I already advised you how to cover your ass. Like I said before, who are you to decide whether the data is confidential or not?

This is not PII or PHI that has a specific definition.

But if you stubborn want to argue, then be my guest. Pray that shit doesn't hit the fan and they look for a scapegoat.

Gen Y and Gen Z really not street smart at all.
*
I'll tell you another story. One day, only three outsourced staff members came to work on the night shift, (leader take annual leave) then the customer had no choice, as no internal staff came and they couldn't see Teams messages.


So, they just posted all messages in the WhatsApp group throughout the night until morning.


So actually the customer doesn't really mind this, as long as the machine is fixed, then it's okay.

This post has been edited by plouffle0789: Apr 26 2024, 02:01 AM
differ
post Apr 26 2024, 02:51 AM

Casual
***
Junior Member
404 posts

Joined: Dec 2008
QUOTE(plouffle0789 @ Apr 26 2024, 02:00 AM)
I'll tell you another story. One day, only three outsourced staff members came to work on the night shift, (leader take annual leave) then the customer had no choice, as no internal staff came and they couldn't see Teams messages.
So, they just posted all messages in the WhatsApp group throughout the night until morning.
So actually the customer doesn't really mind this, as long as the machine is fixed, then it's okay.
*
The customer won't mind until something goes wrong. When that happens, do you think they will accept their mistake? Or will they look for a scapegoat to keep their job?

Really so naive and gullible... zero street smarts.

Young, dumb and broke. Anthem for this generation.

This post has been edited by differ: Apr 26 2024, 02:58 AM
kakikopiluwak
post Apr 26 2024, 04:37 AM

Getting Started
**
Junior Member
70 posts

Joined: Oct 2020
Is there any cost to send Whatsapp messages ?
cursetheroad01
post Apr 26 2024, 05:25 AM

Getting Started
**
Junior Member
58 posts

Joined: Mar 2017
QUOTE(plouffle0789 @ Apr 25 2024, 03:13 AM)
// C# code example for Power Automate flow

using System;

class Program
{
    static void Main()
    {
        // Trigger: Microsoft Teams message
        string teamsMessage = "This is a message from Microsoft Teams.";

        // Action: Send message to WhatsApp
        string whatsappRecipient = "1234567890"; // WhatsApp number
        string whatsappMessage = "New message from Microsoft Teams: " + teamsMessage;

        // Execute action: Send message to WhatsApp
        SendMessageToWhatsApp(whatsappRecipient, whatsappMessage);

        Console.WriteLine("Flow executed successfully!");
    }

    static void SendMessageToWhatsApp(string recipient, string message)
    {
        // Logic to send message to WhatsApp connector
        Console.WriteLine("Sending message to WhatsApp: Recipient - " + recipient + ", Message - " + message);
        // Actual implementation would use the WhatsApp connector in Power Automate
    }
}
May I know is this code ok?
*
Kekwa
Goodluck maintaining with more numbers of outsource staffs and customers later.

You really need a proper ticketing system la.

This post has been edited by cursetheroad01: Apr 26 2024, 05:26 AM
oe_kintaro
post Apr 26 2024, 12:24 PM

Look at all my stars!!
*******
Senior Member
2,222 posts

Joined: Jan 2003
From: Penang


QUOTE(xiaojohn @ Apr 25 2024, 01:07 AM)
Crazy. If your company allow you to do this, it means your company is running a monkey business.

Kesian your client entrusted your company.
*
This is the correct response lol.
TSplouffle0789
post Apr 26 2024, 12:30 PM

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

Joined: May 2010

QUOTE(oe_kintaro @ Apr 26 2024, 12:24 PM)
This is the correct response lol.
*
https://forum.lowyat.net/index.php?showtopic=5453167&hl=


You see here you will know
TSplouffle0789
post Apr 26 2024, 12:30 PM

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

Joined: May 2010

QUOTE(cursetheroad01 @ Apr 26 2024, 05:25 AM)
Kekwa
Goodluck maintaining with more numbers of outsource staffs and customers later.

You really need a proper ticketing system la.
*
So my code is wrong?
s-works
post Apr 26 2024, 12:31 PM

New Member
*
Junior Member
45 posts

Joined: Feb 2022



QUOTE(plouffle0789 @ Apr 24 2024, 09:57 PM)
Can messages from Microsoft Teams be automatically copied to a WhatsApp group?

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 perosnla 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.
If any machine is down or there's an issue, some outsourced staff cannot see the messages from Microsoft Teams.
# 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.       
*
you work with kevin lim?
TSplouffle0789
post Apr 26 2024, 12:34 PM

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

Joined: May 2010

QUOTE(s-works @ Apr 26 2024, 12:31 PM)
you work with kevin lim?
*
Who is kevin lim?
cursetheroad01
post Apr 26 2024, 01:15 PM

Getting Started
**
Junior Member
58 posts

Joined: Mar 2017
QUOTE(plouffle0789 @ Apr 26 2024, 12:30 PM)
So my code is wrong?
*
Code would work but keeping track of all the contacts inside gonna be a pain once your database, or lack of database, is large enough.
For now okay la if you want to hardcode all the numbers there since not much contacts to look up anyway.
But outsourced staffs are not permanent and customer base would grow. Better to think ahead and have a solution with maintainable database.
Something that is more readable, easier to make changes (remove and add contacts)

This post has been edited by cursetheroad01: Apr 26 2024, 01:25 PM
TSplouffle0789
post Apr 26 2024, 02:13 PM

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

Joined: May 2010

QUOTE(cursetheroad01 @ Apr 26 2024, 01:15 PM)
Code would work but keeping track of all the contacts inside gonna be a pain once your database, or lack of database, is large enough.
For now okay la if you want to hardcode all the numbers there since not much contacts to look up anyway.
But outsourced staffs are not permanent and customer base would grow. Better to think ahead and have a solution with maintainable database.
Something that is more readable, easier to make changes (remove and add contacts)
*
Can i change the code to send to a whatsapp group (that have all outsourced staff inside)
oe_kintaro
post Apr 26 2024, 04:40 PM

Look at all my stars!!
*******
Senior Member
2,222 posts

Joined: Jan 2003
From: Penang


QUOTE(plouffle0789 @ Apr 26 2024, 12:30 PM)
What's the titik?

All i see in the first post is some stupid finger pointing. "We need someone" is the hallmark of a useless manager. Define the problems accurately and specifically so they can be resolved in the correct manner.
SUSxiaojohn
post Apr 26 2024, 04:52 PM

Getting Started
**
Junior Member
229 posts

Joined: Feb 2022
QUOTE(plouffle0789 @ Apr 26 2024, 01:50 AM)
The message mostly like that one...
Temp ramp up to **** /, ******, **** both sides xxx flow verified and accepted new CF.
Temp ramp up to *** and Hot leak in progress.
PFU with Hot leak and xxx split.
Which one you think is confidential one?
Now engineers also use Text Fairy (OCR Text Scanner) to extract words and send the extracted messages on WhatsApp. [The company provides internal staff with iPhones, but many apps are locked].
Therefore, they can only screenshot the customer instructions and use OCR text scanner to extract all the words and send them to the outsourced technicians.
*
Singapore CryoCords just shit this in trouble...hopefully not because of your company...
SUSxiaojohn
post Apr 26 2024, 04:53 PM

Getting Started
**
Junior Member
229 posts

Joined: Feb 2022
QUOTE(differ @ Apr 26 2024, 01:52 AM)
I already advised you how to cover your ass. Like I said before, who are you to decide whether the data is confidential or not?

This is not PII or PHI that has a specific definition.

But if you stubborn want to argue, then be my guest. Pray that shit doesn't hit the fan and they look for a scapegoat.

Gen Y and Gen Z really not street smart at all.
*
uncle think he is Gen X or Y la.
SUSxiaojohn
post Apr 26 2024, 04:54 PM

Getting Started
**
Junior Member
229 posts

Joined: Feb 2022
QUOTE(differ @ Apr 26 2024, 02:51 AM)
The customer won't mind until something goes wrong. When that happens, do you think they will accept their mistake? Or will they look for a scapegoat to keep their job?

Really so naive and gullible... zero street smarts.

Young, dumb and broke. Anthem for this generation.
*
it is okay as long as Ts is working in Malaysia. Customer can do nothing on him. God bless malaysia.
TSplouffle0789
post Apr 26 2024, 05:13 PM

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

Joined: May 2010

QUOTE(xiaojohn @ Apr 26 2024, 04:52 PM)
Singapore CryoCords just shit this in trouble...hopefully not because of your company...
*
confirm not

We are not medical field
differ
post Apr 26 2024, 05:48 PM

Casual
***
Junior Member
404 posts

Joined: Dec 2008
QUOTE(xiaojohn @ Apr 26 2024, 04:52 PM)
Singapore CryoCords just shit this in trouble...hopefully not because of your company...
*
CordLife issit
TSplouffle0789
post May 16 2024, 01:10 PM

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

Joined: May 2010

Anyone know???
TSplouffle0789
post May 23 2024, 02: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.
*
https://powerusers.microsoft.com/t5/Buildin...pp/td-p/2206222


I found this only
bottomfrag
post May 23 2024, 02:11 PM

Getting Started
**
Junior Member
104 posts

Joined: Jun 2020
QUOTE(plouffle0789 @ Apr 24 2024, 09:57 PM)
Can messages from Microsoft Teams be automatically copied to a WhatsApp group?

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 perosnla 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.

*
The 2 bolded text macam contradicting.
TSplouffle0789
post May 23 2024, 02:15 PM

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

Joined: May 2010

QUOTE(bottomfrag @ May 23 2024, 02:11 PM)
The 2 bolded text macam contradicting.
*
Why said so?
error
post May 23 2024, 02:15 PM

Enthusiast
*****
Senior Member
869 posts

Joined: Jan 2003
From: S.Damansara



Still a bodo workaround, if im the outsourced feller, i will pretend that i didnt recv any wasap msg at all

Get them your company email and add them to the teams is still the best way to go.

and you will have 1 more thing to worried which is to maintain/support the power automate or whatever workaround to forward the teams message to wasap

This post has been edited by error: May 23 2024, 02:17 PM
bottomfrag
post May 23 2024, 02:28 PM

Getting Started
**
Junior Member
104 posts

Joined: Jun 2020
QUOTE(plouffle0789 @ May 23 2024, 02:15 PM)
Why said so?
*
Customer say prefer Teams over WA cos of security concerns. You, behind their back want to implement a way to copy texts automatically into WA. Please don't put yourself in such a situation. Your company will love you until something goes wrong and then throw you under the bus when your customer finds out and takes action.
TSplouffle0789
post May 23 2024, 02:31 PM

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

Joined: May 2010

QUOTE(error @ May 23 2024, 02:15 PM)
Still a bodo workaround, if im the outsourced feller, i will pretend that i didnt recv any wasap msg at all

Get them your company email and add them to the teams is still the best way to go.

and you will have 1 more thing to worried which is to maintain/support the power automate or whatever workaround to forward the teams message to wasap
*
Just open a laptop will do power automate
sapien06
post May 23 2024, 02:50 PM

New Member
*
Junior Member
26 posts

Joined: May 2011
The thing with PowerApp and or Automate is you need to try, what ever code u have or u found, try it first, by asking people here and there you would not get anything without trying it first.

Go to Powerapps forum or how much are you willing to pay for this?
TSplouffle0789
post May 24 2024, 04:55 PM

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

Joined: May 2010

QUOTE(cursetheroad01 @ Apr 26 2024, 01:15 PM)
Code would work but keeping track of all the contacts inside gonna be a pain once your database, or lack of database, is large enough.
For now okay la if you want to hardcode all the numbers there since not much contacts to look up anyway.
But outsourced staffs are not permanent and customer base would grow. Better to think ahead and have a solution with maintainable database.
Something that is more readable, easier to make changes (remove and add contacts)
*
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.



WhatsApp group no phone number right?
TSplouffle0789
post May 24 2024, 08:48 PM

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

Joined: May 2010

QUOTE(cursetheroad01 @ Apr 26 2024, 01:15 PM)
Code would work but keeping track of all the contacts inside gonna be a pain once your database, or lack of database, is large enough.
For now okay la if you want to hardcode all the numbers there since not much contacts to look up anyway.
But outsourced staffs are not permanent and customer base would grow. Better to think ahead and have a solution with maintainable database.
Something that is more readable, easier to make changes (remove and add contacts)
*
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.



This should be ok...

But worried company laptop must use vpn internet access....


TSplouffle0789
post Jun 27 2024, 06:51 AM

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

Joined: May 2010

Anyone have same issue?
TSplouffle0789
post Jun 27 2024, 07:24 AM

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

Joined: May 2010

QUOTE(LaiN87 @ Apr 25 2024, 12:16 AM)
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
*
Seems WhatsApp Business API is ok.

But I am not sure those company staff have this or not.

Maybe engineer laptop have.

 

Change to:
| Lo-Fi Version
0.0268sec    1.01    5 queries    GZIP Disabled
Time is now: 24th December 2025 - 06:40 PM