29
Views
8
Comments
[Amazon Simple Notification Service (SNS)] Which action supports Amazon SNS - SMS trigger

Hi Guys,
I was checking the Amazon Simple Notification Service forge component from Outsystems, I wanted to know which action allows you to send SMS as there are topic, subscription and endpoint actions but I don't see SMS action. 

It is mentioned that create a endpoint but after creating a endpoint what action needs to be called to trigger SMS to particular number which can be given to the action as input.


I have seen other component as well Amazon SNS Connector which has Sms_Publish and it works also.

But I wanted to use the component created Outystems. If there is any solution please suggest otherwise I'm good to use the connector as well but my first priority is component from Outsystems.

2024-07-31 11-32-34
ndy

Dear @Bhanu Pratap .

The Amazon Simple Notification Service (SNS) Forge does not include a direct action for sending SMS messages. 

2024-10-09 04-44-30
Bhanu Pratap

Thanks for the response @ndy.

That I already know. But I’m expecting if there is any workaround otherwise I’m good to use the other connector component. 
Because what I see is OS component uses older SDK comparatively to other connector component.

2024-07-31 11-32-34
ndy

Hi, @Bhanu Pratap .

Use the AWS SDK directly through a custom extension to send SMS messages 

2024-10-09 04-44-30
Bhanu Pratap

Will see, If I don’t get any other solution than will go with that approach.

2024-02-07 07-35-05
Alessandro Bognetti

Actually, the TopicPublish uses the internal sdk function  amazonSNSClient.Publish(publishRequest);

From the documentation, the publishRequest has two parameters, topicArn and message, but the topicArn can be also a PhoneNumber



Unfortunately, the phone number has less the 20 characters but the OS component validates the field only if it's at least 20 characters:


If you reduce the minimum leght of the topicArn field (let's say 8 characters) and you put the phone number in that field, it should work.

Can you fix this bug?

2024-10-09 04-44-30
Bhanu Pratap

Thanks for the reply @Alessandro Bognetti, I got your point. I'll try it and check if it works for me.

2024-10-09 04-44-30
Bhanu Pratap


Hi @Alessandro Bognetti,

Even after modifying the TopicArn field, it still didn't work. For reference, I passed a single number in the TopicArn field.

Error: {"Errors":["Invalid parameter: TopicArn Reason: An ARN must have at least 6 elements, not 1"],"StatusCode":500}

2024-10-09 04-44-30
Bhanu Pratap

I went with Amazon SNS Connector forge component which has Sms_Publish, which is working as expected for my usecase, Thank you all for your responses.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.