Skip to main content
Nintex Community Menu Bar

Nintex Forms Web Request - Variable in Request Header

  • July 10, 2020
  • 5 replies
  • 200 views

Hello,

 

i want to use the "Web Request Control" in Nintex Forms. I make a query to the Graph API and for this I need an access token. This access token has to be ideally dynamic.

Can I make the access token to the GraphAPI in the ServiceURL dynamic or how do I make it possible to use a variable in the request header?

 

With a hard coded access token it will work, but my access token will expire.

 

Any thoughts on this? Many thanks in advance


8349i7ED6153A6ED504F3.png

Regards,

 

Andre

 

5 replies

nico
Forum|alt.badge.img+10
  • Rookie
  • July 16, 2020

For now this can't be done.

You can't use variable in the header of your request. So you can't retrive and pass your access tokens (except in static like you have done)

I don't think this control is designed to use an API that requires authentication.

maybe in a future update.


  • July 16, 2020

I'm trying to figure out how to add static authorization to the header section. this is my first time using this and feature. can you provide any clarity?


  • Author
  • July 17, 2020

In my screenshot it would be static. In the request header there is an

Authorization Bearer "Token"

for it.


How to use the Web Request otherwise is well described here:


https://help.nintex.com/en-US/office365/Designer/FormControls/WebRequest.htm


  • July 17, 2020

Thank you, I went through the whole blog and i got the example to work in my form. I don't see an example of how to apply an authorization token. can you assist me with that?


  • July 17, 2020

oh i converted the username and password to base64