I am using HTTP Request activity to call a REST API which uses OAuth2 authorization. I was able to get the access token successfully and I extracted necessary value from returned JSON response by using Deserialize JSON activity. Assume extracted value is in a variable called acsTknRspns (Type: JObject).
When I provide set this value to the OAuth2Token value of my next HTTP Request, the workflow ends with code 401, unauthorized access.
But I overcame this issue as follow.
I set the Headers of the next HTTP Request like,
Bearer + acsTknRspns(“access_token”).ToString.
By this way, I can make a successful request.
Am I using the OAuth2 wrong? If so how to set access token value in OAuth2Token property?