Hello,
I'm using Whatsapp Business for OTP purpose, when I use WA send Message, I'm getting the below error.
WA_SendMessageSystem.Net.WebException: The remote name could not be resolved: 'whatsapp_business_api' at Object.s [as getException] (https://stengg-dev.outsystemsenterprise.com/eSOC/scripts/OutSystems.js?LTlhHECPOUxqT4vuxlhDGg:2:6362) at c.onSuccess (https://stengg-dev.outsystemsenterprise.com/eSOC/scripts/OutSystems.js?LTlhHECPOUxqT4vuxlhDGg:3:709) at XMLHttpRequest.<anonymous> (https://stengg-dev.outsystemsenterprise.com/eSOC/scripts/OutSystems.js?LTlhHECPOUxqT4vuxlhDGg:2:28299)V @ Logger.js:476
Regards,
Mohamed Zubair Ahmed
Hi Ahmed,
The error indicates that you are trying to reach a URL that is "whatsapp_business_api", which is of course not a valid URL. Isn't there some Site Property or other configuration you need to change to point to an actual URL?
that component doesn't allow you to send messages directly, it's just examples.
You can however configure your own account with Meta and use their WhatsApp Business Cloud API to send for free messages (up to a daily limit, then it's paid).
https://developers.facebook.com/docs/whatsapp/cloud-api/
The API to send messages is the following:
POST https://graph.facebook.com/v14.0/{PhoneNumberId}/messages
Once you get your account configured and verified you'll get your PhoneNumberId.
Regards