web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / O365 connectors within...
Power Automate
Unanswered

O365 connectors within Teams will be deprecated

(1) ShareShare
ReportReport
Posted on by 2

I've been using Webhook connector to post messages from my CRM into Teams Channel. I'm now trying to migrate to the new WorkFlow. 

 

I have created a new workflow as per the below steps:

1. Apps > Workflow > All Templates > Post to a chat when a webhook request is received

2. Microsoft Teams [NEXT]

3. Selected the TEAM & Channel [Add WorkFlow]

DONE

 

Now, I'm using the following PHP code to post a message to Teams Channel.

 

 

 

 

<?php

$msg = "Please ignore: " . date("Y-M-d");

$url = 'https://prod2-20.centralindia.logic.azure.com:443/workflows/3357f.....w7gGwDU8';
$data = array("@context" => "http://schema.org/extensions","@type" => "messagecard","text"=>$msg);
	
$postdata = json_encode($data);

$ch1 = curl_init($url);
curl_setopt($ch1, CURLOPT_POST, 1);
curl_setopt($ch1, CURLOPT_POSTFIELDS, $postdata);
curl_setopt($ch1, CURLOPT_RETURNTRANSFER, 1); 
curl_setopt($ch1, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
$result1 = curl_exec($ch1);
curl_close($ch1);

?>

 

 

 

 

When executing the above code, I get the following error:

 

Error
Action 'Send_each_adaptive_card' failed
 
The execution of template action 'Send_each_adaptive_card' failed: the result of the evaluation of 'foreach' expression '@triggerOutputs()?['body']?['attachments']' is of type 'Null'. The result must be a valid array.

 

Someone please help me fix this issue..

 

Thanks

 

Categories:
I have the same question (0)
  • SandhiyaSiv Profile Picture
    2 on at

    It seems the workflow based notification supports Adaptive Card Format whereas you have used Message Card in your code.

    Ref: https://devblogs.microsoft.com/microsoft365dev/retirement-of-office-365-connectors-within-microsoft-teams/comment-page-3/#comment-629

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 505

#2
Haque Profile Picture

Haque 446

#3
Valantis Profile Picture

Valantis 395

Last 30 days Overall leaderboard