Hi, I what I need to do is call REST API using x-www-form-urlencoded body to get a token that I can use calling other services, I'm using Http Client but what I can't figure out is how to create a list of the type <string><string> in NAV.
Edit, I'm trying to use Dictionary to achieve this System.Collections.Generic.Dictionary`2.'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
Does anyone have a clue how I can achieve this without writing my own dll?
The request I need to do:
What I have so far:
Answers
The working code:
Like he said @irasoelbaks ,
Dictionary is also a datatype in BC
https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/dictionary/dictionary-data-type
Hi @jimmyf, you should be able to use the "Type Helper" codeunit function "UrlEncode". Look at the last example on this page. https://www.kauffmann.nl/2017/07/18/al-web-service-examples/