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?