errorCode":"CMN-101 - Parameter [from] value is invalid. - Callout not working in Developer Console
I keep getting the error : "errorCode":"CMN-101","message":"Parameter from] value is invalid." from my callout. So I attempted to make the same one in the Developer Console UI and I get the same error.
So this leads me to believe that it has something to do with how the from message is configured somewhere but I need some help understanding what I need to do to get a from phone number that I can use for Sending A2P Send SMS Api.
I checked the Admin Portal and in the TCR Registration it has the number as a Campaign User and Ready for Use and the title says SMS enabled numbers.
Any idea of how I might be able to resolve?
Thank you in advance
Robert
Page 1 / 1
You mentioned “callout” and “A2P SMS”, which API did you call? Please share some code snippets.
I tried it in the Developer Console and here is the screenshot:
Here is my code in Apex:
Here is what I am sending in the body
{ "text":"Welcome to the XXX Community Platform. You can go to the site at https://XXXXXXXXXXX--robert.sandbox.my.salesforce.com/client/s/to check the status of your account.", "messages":g { "to":" "+1931XXXXXXX" ], "text":"Welcome to the XXX Community Platform. You can go to the site at https://slpattorney--robert.sandbox.my.salesforce.com/client/s/to set up your user account. Your user name is: robert.davis+testcomm1@XXX.com." }, { "to":" "+1931XXXXXXX" ], "text":"Welcome to the XXX Community Platform. You can go to the site at https://XXXXXXXXXX--robert.sandbox.my.salesforce.com/client/s/to set up your user account. Your user name is: none@none.com." } ], "from":"+1424XXXXXXX" }