Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
vikasmahajan

How to send SMS from Qliksense?

Dear all,

Does anyone implement sending sms from Qliksense? If yes can you share a sample demo?

Thanks

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
3 Replies
m_s
Partner - Creator II
Partner - Creator II

Hello Vikas,

if you're familiar with Twilio you can use this small extension:

define(["qlik"], function (qlik) {

return {

definition: {

type: "items",

component: "accordion",

items: {

appearance: {

uses: "settings",

items: { }

}

}

},

isBusy: false,

paint: function ($element, layout) {

var self = this;

var twilioConfig = {

sid : 'YOUR TWILIO SID',

token: 'YOUR TWILIO TOKEN',

fromNumber: '"YOUR TWILIO PHONE NUMBER"' // e.g. "+43123567"

};

var messageBody = '"TEST SENSE SMS MESSAGE"'; // message body

var toNumber = '"TO NUMBER"'; // e.g. "+4398764541"

$.ajax({

url: 'https://api.twilio.com/2010-04-01/Accounts/' + twilioConfig.sid + '/Messages',

method: 'POST',

contentType: "application/x-www-form-urlencoded",

data: {

From: twilioConfig.fromNumber,

To: toNumber,

Body: messageBody

},

beforeSend: function (xhr) {

xhr.setRequestHeader ("Authorization", "Basic " + btoa(twilioConfig.sid + ":" + twilioConfig.token));

},

completed: function(r){

console.log(r);

}

});

$element.html('<h1>loaded</h1>')

}

}

});

Mathias

SumeetArora
Contributor
Contributor

Can you please specify the steps and briefly explain it

How this script is generated.

chhavikhurana03
Contributor
Contributor

This code is showing error, so can you please explain any other way.