Hi,
Iโm setting up my first Workflow using the SMS feature but Iโm getting an error (in the Audit log which I think Iโve paste the relevant info) says the SMSFrom field is invalid or missing. This SMS action is the 2nd of two. The first action is an outbound email and that works fine.
โActionNotPerformedโ: โ2 errors present.โ,
โActionResultsโ: โCreated 1 ActionResultsโ,
โAction Typeโ: โSMSโ,
โAction Nameโ: โSMSโ,
โErrorsโ: โError: Workflow rule โSMSโ field โSMSFromโ contains invalid phone number โ+447476555623โ. Error: No SMS was created because โFromโ is missing or invalid.โ,
โFromโ: โโ,
The AppSheet logs are suggesting AppSheet doesnโt recognise the number Iโm entering. The From field is also blank which I canโt tell is related or separate? Could I be entering the Twilio number incorrectly? Iโve tried multiple variations of entering the number - within quote marks, with the + symbol. This is also the 2nd Twilio number Iโm using. I had a trial number which I activated and then purchase this second number when the activation still wouldnโt work.
Iโm based in New Zealand and the two Twilio numbers (US CA +66 and UK) I purchased have been tested using Twilioโs API Explorer tool and both SMS were successfully delivered to my target mobile number.
Iโve gone through the AppSheet docs and the community and the instructions of setup seem straight forward. I just think Iโve been inside a tunnel too long to now see any obvious mistakes I made. Are there conditions for configuring SMS / Twilio outside the US?
Any suggestions or tips on how to handle / resolve my issue would be greatly appreciated.
Thanks
Solved! Go to Solution.
You need to list all the country codes your custom twilio will be handling regardless of it being From or To.
I have not run into this issue before, but I can try to help. Just to cover our basis, after you purchased the two numbers from Twilio, did you configure AppSheet to use your Twilio account (instead of the default AppSheet account) as listed in the instructions at the bottom of this article? https://help.appsheet.com/en/articles/961993-sending-sms-from-a-workflow-rule-or-scheduled-report
Hi Kamila,
Thanks for picking up my call for help.I have set the Channel to _Custom_Twilio_SMS and have include a screen shot of this plus the numbers Iโm using. Note: the screen shot shows the Twilio TOKEN and SID removed but I do include them in my actual test / workflow. Iโve also redacted the target mobile number the text is destined for.
Screen shot image removed from this update.
I do think it is something Iโve done wrong or something I donโt know about how AppSheet and Twilio work together. Iโve not used Twilio before.
Iโm happy to go back to the very basics of a workflow and even selecting a Twilio number that will allow SMS message to reach the New Zealand telco network.
Thanks
Considering the amount of information we would be sharing, this might be a case for support@appsheet.com - let us know if they come to a solution.
Hi Kamila,
Do I log this with support@appsheet.com or have you already logged it?
FYI, Iโve added a screen shot of my workflow UI.
Thanks
We validate the From phone number using a C# version of Googleโs libphonenumber.
We pass in the country code and the phone number you provide.
The libphonenumber tells us whether the phone number is valid for that country code.
I presume the +44 number is for the UK, so you should specify country code โGBโ.
For the US number you should specify country code โUSโ.
When you specify the phone number you can include or omit the leading +, so the following are equivalent:
4255551212
+14255551212
Thanks Philip. That suggestion has solved the From error but Iโm now getting an error for the To field / number. Here is the data from the log.
โActionNotPerformedโ: โ2 errors present.โ,
โActionResultsโ: โCreated 1 ActionResultsโ,
โAction Typeโ: โSMSโ,
โAction Nameโ: โSMSโ,
โErrorsโ: โError: Workflow rule โSMSโ field โSMSToโ contains invalid phone number โ64nnnnnnnnnโ. Error: No SMS was created because โToโ is missing or invalid.โ,
โFromโ: โ+44nnnnnnnnnnโ,
โToโ: โโ,
Screen shot image removed from this update.
So to recap, the From number is a UK number so Iโve added the Country Code โGBโ in my Workflow and this appears to have fixed the From issue. The โToโ number is a New Zealand based mobile number. Does this matter, in terms of can Workflow only deliver to mobile numbers within the same country code as the From number?
You need to list all the country codes your custom twilio will be handling regardless of it being From or To.
Thank you Bahbus for the advice. That did the trick.
Much appreciated.
User | Count |
---|---|
14 | |
11 | |
9 | |
7 | |
4 |