Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I want delete data connection of app in Qlik sense Desktop. I am using qsock object for that. I have written following code to delete Data connection but no luck. Not getting any error but Data connection is also not deleted. i am missing something in passing parameters in deleteConnection method.
Code :
const qsocks = require('qsocks');
const connectionName = 'Test';
qsocks.Connect( {appname: connectionName } )
.then( global => {
// Access to the global class
return global.openDoc( connectionName )
.then( app => {
console.log('Deleting')
return app.deleteConnection('1e9290c4-eb65-4b05-bce9-e21bdbb88dc1').then(function(reply) {
console.log('Deleted: ' +reply)
})
})
.then(() => {
// Close our connection.
return global.connection.close();
})
.catch( err => {
console.log( err )
})
})
.then(() => {
console.log('Done!')
})
Please Help.
Thanks & Regards,
Swapnil
Have you verified the connection ID? It looks too short in your example.
Hope this helps
Erik Wetterberg
Hi Erik,
Yes i have verified Connection ID from Qlik sense Dev Hub. It is correct.
Thanks & Regards,
Swapnil
Hi Erik,
Thanks a Lot. its working fine now.
Thanks & Regards,
Swapnil
Glad it helped. It's easy to forget about saving the appin desktop.
Erik Wetterberg
yes small things create big troubles.