Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to sent HTTP DELETE with Request Body having JSon code

Hi,

I want to use HTTP DELETE method to delete some task by passing JSon code to REST

Can anyone help me in this

Thank you

Regards

2 Replies
daveamz
Partner - Creator III
Partner - Creator III

Hi,

May I ask why do you need to do that from QlikView or Qlik Sense?

If that is really necessary, I think the easiest way is to build a power shell script and run it from QV.

Regards,

David

Not applicable
Author

Hi,

As all activity I am doing in Qlik by writing code in VB script.

I tried below code but it say that ActiveX can't create Object WinHttp.WinHttpRequest.

Set objHTTP = CreateObject ("WinHttp.WinHttpRequest")

    URL = "https://pathurl/tasks?amount=20"

    objHTTP.Open "Delete", URL, False

    objHTTP.setRequestHeader "Content-Type", "application/json"

    objHTTP.send ("{""tasks"": [{""key"": ""value""}]}")

I tried in VBA and code ran sussessfully.

Regards,

Deepika