Convert Currency From one (USD, EUR) To another (INR) and calculate it (Unable to show even currencies on browser)

0
I want to convert currency from one to another. I don’t want to use currency converter module and don’t want to store data. I just need to store only converted amount to my existing entity. I am unable to show currencies on browser. I am using this request “https://api.exchangerate.host/convert?from={1}&to={2}&amount={3}&api_key={APIKEY}” by giving parameters. Is it right or am I doing wrong? Do I need to create mapping and JSON structure for this? How can I Show currencies in |FROM| and |To| field and how can I calculate it? Like if I have 4 fields Amount, From, To, Result. Which widget should I need to use for From and To field? Please let me know I am stuck in it. Thank you!   
asked
1 answers
0

Hi Asad,

 

Did you check out the learning paths of the academy? They are very valuable resources to get up to speed quickly.

This learning path deals with consuming data from a REST service:

https://academy.mendix.com/link/paths/44/Importing-and-Exporting-Your-Data 

 

Other possible resources: https://www.mendix.com/videos/consuming-rest-services-with-mendix/

or https://docs.mendix.com/refguide/integration/consume-a-rest-service/ 

 

I hope this helps.

Michiel

answered