backi
Nintex Newbie

Nintex Forms Web Request - Variable in Request Header

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


Nintex Request Header.png

Regards,

 

Andre

 

0 Kudos
Reply
5 Replies
nico
Process Pupil

Re: Nintex Forms Web Request - Variable in Request Header

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.

0 Kudos
Reply
brianiqt
Canvas Initiate

Re: Nintex Forms Web Request - Variable in Request Header

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?

0 Kudos
Reply
backi
Nintex Newbie

Re: Nintex Forms Web Request - Variable in Request Header

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

0 Kudos
Reply
brianiqt
Canvas Initiate

Re: Nintex Forms Web Request - Variable in Request Header

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?

0 Kudos
Reply
brianiqt
Canvas Initiate

Re: Nintex Forms Web Request - Variable in Request Header

oh i converted the username and password to base64

0 Kudos
Reply