Qlik Community

Ask a Question

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Announcements
Join us for a live Q&A! September 21, 10 AM ET - Onboarding Fast in Qlik Sense SaaS! REGISTER
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

3 Replies
m_s
Partner
Partner

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.