Has anyone ever pulled data from a live URL and populated a field with a specific value?
For example - I’ve created a calculated field that converts (MXN) Pesos to USD. The Exchange Rate field is a Number field where they can enter what the exchange rate is for that day. However, it would be nice if it was possible to make that field a “live” field that references what the Exchange rate is in real time.
Any suggestions or ideas of how to do this - if someone else has already tackled this.
A few things I’ve found:
https://openexchangerates.org/ - Website with an exchange rate API (and a free service of 1,000 hits per month). I imagine there are other non-pay options as well, if needed.
Looks like you could implement something similar, and just add the JS to take the data from the API response and plug it in to the fight field.
The method that James mentioned is a way to go.
To be more specific, you could create a button that updates the exchange rate field upon clicking on it.
The flow should be something like the following:
Find an API that obtains the exchange rate
Create a custom button and add a click event that runs the process beyond step 3.
Run the API obtained in step 1 using kintone.proxy variable
Input the data obtained in step 3. to a number field
Kintone Developer Program - Kintone Proxy
Example Exchange Rates API
I hope this helps!