Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
fabrice_lattern
Contributor III
Contributor III

REST connection - x-www-form-urlencoded

Hello,

I am encountering some issue to setup a connection to a REST API, using POST with a x-www-form-urlencoded body.

In Postman this is working well, and it sends me back the token for subsequent API calls :

PostmanPostmanPostman HTML codePostman HTML code

In QlikSense I configured it this way, by doing copy paste of Postman parameters:

Endpoint & bodyEndpoint & bodyContent typeContent type

But I am still getting 403 error.

Is it a formatting issue on the body, or do you think about anything else ?

Thanks in advance for any advice !

Labels (1)
1 Solution

Accepted Solutions
NadiaB
Support
Support

Hi @fabrice_lattern 

By any chance do you have a screenshot that shows the error?

In addition from postman itself, there is an icon in the top right section with this symbol </> , if you click on it it will let you get code on other languages, I would select Powershell and get the script, that way you make sure you are passing all the parameters that postman is passing and then just copy them to QS and verify the outcome. 

Hope it helps!

Don't forget to mark as "Solution Accepted" the comment that resolves the question/issue. #ngm

View solution in original post

3 Replies
NadiaB
Support
Support

Hi @fabrice_lattern 

By any chance do you have a screenshot that shows the error?

In addition from postman itself, there is an icon in the top right section with this symbol </> , if you click on it it will let you get code on other languages, I would select Powershell and get the script, that way you make sure you are passing all the parameters that postman is passing and then just copy them to QS and verify the outcome. 

Hope it helps!

Don't forget to mark as "Solution Accepted" the comment that resolves the question/issue. #ngm
p_verkooijen
Partner - Specialist
Partner - Specialist

@NadiaB thanks, was looking for the same. This worked for me 

For future reference

  1. Select </>
  2. Select PowerShell - RestMethod
  3. Copy Paste the $body content in Qlik

p_verkooijen_1-1688378114687.png

 

 

GregWoodard
Partner - Contributor II
Partner - Contributor II

Similar topic is connecting to Quickbooks Online (QBO) via REST API in Qlik Sense SaaS.  See my post on this thread:  Connection Qlik Sense SAAS to Quickbooks online - Qlik Community - 2122653