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 / Troubleshooting Custom...
Power Automate
Answered

Troubleshooting Custom Connector with WhatsApp Business API in Power Automate

(0) ShareShare
ReportReport
Posted on by 15

Hello, community!

I hope everyone is doing well. I’m encountering an issue with a custom connector while trying to make a request to the WhatsApp Business API to send a text message. The workflow fails, and the error message I receive is:

The API operation 'SendTextMessage' requires the property 'body' to be of type 'Object' but is of type 'String'.

{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"to": "+528134044875",
"type": "text",
"text": {
"preview_url": false,
"body": "text-message-content"
}
}

The Peak Code I’ve implemented looks like this:

{
"inputs": {
"host": {
"connectionName": "shared_whatsapp-5ffa150e7daae86389-5f7c8f2479de47eca0",
"operationId": "SendTextMessage",
"apiId": "/providers/Microsoft.PowerApps/apis/shared_whatsapp-5ffa150e7daae86389-5f7c8f2479de47eca0"
},
"parameters": {
"Content-Type": "application/json",
"body": {
"messaging_product": "whatsapp",
"recipient_type": "individual",
"to": "+528134044875",
"type": "text",
"text": {
"preview_url": false,
"body": "text-message-content"
}
}
},
"authentication": "@parameters('$authentication')"
},
"metadata": {
"operationMetadataId": "d7a777b3-6349-4835-b1ea-b760528a0baa"
}
}

I’ve tried manually typing the body in the Power Automate flow to ensure it’s passed as an object, but the error persists. I’ve also read that Power Automate custom connectors sometimes have compatibility issues and require workarounds. Can I try WhatsApp Plus APK as it have additional features.

As a beginner, I’d appreciate any guidance or suggestions to resolve this issue.

Thank you so much in advance for your help!

WhatsappCC_PAFlow.png
Categories:
I have the same question (0)
  • Verified answer
    Gopala_Krishna Profile Picture
    1,495 on at
    To ensure your custom connector works properly, follow these steps:
    1. Check the Action's Schema

    Make sure the body parameter in your custom connector's definition is set as an Object. Here’s how to verify and update it:

    In Power Automate's Custom Connector editor, open the SendTextMessage action.
    Look for the body parameter and confirm its type is defined as Object.
    If it’s mistakenly set as String, change it to Object.
     
    2. Use an Expression in Power Automate

    To ensure the body is treated as an object, use an expression in Power Automate's dynamic content box. For example:

    json('{
    "messaging_product": "whatsapp",
    "recipient_type": "individual",
    "to": "+528134044875",
    "type": "text",
    "text": {
    "preview_url": false,
    "body": "text-message-content"
    }
    }')

    This explicitly instructs Power Automate to interpret the value as JSON.
     
    3. Try re-adding the content type header in the custom connector definition the Content-Type header should be application/json
     

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 308

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 226 Most Valuable Professional

Last 30 days Overall leaderboard