RE: Connect to external API from Business central
Finally, I succeeded to get the token json response file, but how can I get the token value to save it and use it later ?
Explanation :
1/I sent Json request (AL function)
{"method":"login",
"params":{
"login":"XXXXX@XXXX.com",
"hash":"0e39d0c214eb0d2257e4c8004a24da89258a7d02",
"timestamp":1683294731
}}
2/I got Json response (AL Function) but I need retreive the token value .
{"jsonrpc":"2.0",
"result":{
"authToken":{
"credId":98903,
"login":"XXXXX@XXXXX.com",
"end":1683298331,
"type":"basic",
"hash":"85d26fcdc118c7375b1a8ea1d17deac576ef2142"
},
"login":"XXXXX@XXXXXX.com",
"id":98903,
"userId":98723,
"uniqueUserId":"stage_98723"
},
"id":null
}
If I do the same thing in postman, I have a token value in authToken var . And I need to get this value in Business Central.

Any idea ?
Thanks