# Using online/live data in calculation to calculate value in multiple currencies

**URL:** <https://forum.getodk.org/t/using-online-live-data-in-calculation-to-calculate-value-in-multiple-currencies/55645>\
**Category:** Support\
**Tags:** form-design, odk-xlsform\
**Created:** [July 9, 2025, 7:23am UTC](https://forum.getodk.org/t/using-online-live-data-in-calculation-to-calculate-value-in-multiple-currencies/55645 "2025-07-09T07:23:43Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Tyler\_Depke](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/tyler_depke/32/17598_2.png) [@Tyler\_Depke](https://forum.getodk.org/u/Tyler_Depke)\
**Post date:** [September 1, 2025, 10:48am UTC](https://forum.getodk.org/t/using-online-live-data-in-calculation-to-calculate-value-in-multiple-currencies/55645/6 "2025-09-01T10:48:53Z")

</div>

So it looks like the ultimate solution would be to use [this](https://docs.getodk.org/central-api-entity-management/#updating-an-entity):

> **[Entity Management](https://docs.getodk.org/central-api-entity-management/#updating-an-entity)**
>
> Entities Metadata: GET /projects/{projectId}/datasets/{name}/entities Request Parameters,, projectId, number Example: 16,, name, string Example: people,,,, Response HTTP Status: 200 Content Type: a...

While I haven’t used that API Call specifically using entities, my recent [post](https://forum.getodk.org/t/sync-google-sheets-xlsform-and-media-from-google-drive-to-odk-central/56435) using google Apps Script and Google Sheets would allow one to do this within the XLSForm, but is probably a less ideal solution than updating an entity. That code could be modified though to use this API call.

---

_[View the full topic](https://forum.getodk.org/t/using-online-live-data-in-calculation-to-calculate-value-in-multiple-currencies/55645)._
