Hello! I want to create a feature in a messaging application I've made. I want to be able to sent text messages in bulk to people's phones. Is anyone familiar with how to do this? If so, what steps did you take? Thank you
Discussion posts and replies are publicly visible
Independent from Appian's Twilio component, you can simply use an Appian Integration Object to hit Twilio REST APIs (note: to do this, you will need a separate license agreement with Twilio):
https://www.twilio.com/docs/usage/api
https://www.twilio.com/docs/sms/api
Example Details:
URL: https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Messages.json
Method: POST
Request Body Content Type: Custom - application/x-www-form-urlencoded
Request Body: "From=+15555559999&To=+15555555555&Body=Hello World"
Hmm, I don't know. But I found the Twilio Utilities app and added that. In my process model, I found the Send Twilio SMS node, which seems to be right. I added my Twilio trial account's SID, Auth Token, and the other inputs.
I get the below error when I debug. As you can see, there is a value in the Auth Token field. Any ideas?
"AuthToken 'null' is not valid."
The plugin is asking for the scs (secure credential store) key, not the actual token.
Personally, I prefer using out of the box functionality over a plugin in this case. It is supported by Appian Support, easier to debug, and provides more control over the connection details.
Is the OOBF is the one that requires ICC? Thanks for your help, by the way
No this is independent from ICC. You can simply use a connected system and/or integration object to make a RESTful webservice call to Twilio's REST APIs.
Okay. Also, how can I find the SCS key?
I've entered the following into "Third Party Credentials" but it still gives me the same error during debugging. Any ideas?
If you look at the readme for the component, you can name the key for the system (left side of the screen) whatever you want, but you need to have the key for the credential field (right side of the screen) be "authToken" since this is likely referenced directly in the plugin.
I don't know how you knew it, but it worked. Thanks so much!
Steven Miccile If I may, I have one other question. I want this message to be sent to my phone as an SMS. I tried entering my number in the value box (shown below), but nothing. What am I missing? Thanks
Mmm based on the screenshot, you have nothing in the "value" field for the "To" parameter.