You’re offline. This is a read only version of the page.
Skip to main content
Power Platform Community
Cancel
Get involved
Get answers
Discover events
Learn Power Platform
More
Search
Notifications
Announcements
Welcome to the Power Platform Communities
Season of Giving Solutions is Here!
Explore Copilot Studio Forums, Blogs & Galleries!
Community site session details
Session Id :
Copy
Close
Season of Giving Solutions is Here!
Power Platform Community
/
Blogs
/
Power Apps - Community Blog
/
Custom Currency Mapping in ...
Custom Currency Mapping in Dataverse: A Step-by-Step Guide
Views (64)
ArchitectMadhan
1,584
Follow
Like
(
0
)
Share
Report
In Dataverse, currency fields are typically tied to the
transactioncurrencyid
field, which sets the default currency for all currency-type fields in a record. Unfortunately, there isn't a built-in way to directly map a specific currency-type field to follow a different currency lookup field like
Provision Currency
.
However, you can achieve the desired behavior using a combination of custom fields and workflows or Power Automate flows. Here's a high-level approach:
Steps to Implement Custom Currency Mapping
Create Custom Fields
:
Create a custom decimal field to store the
Provision Amount
in its original currency.
Create a custom decimal field to store the exchange rate between the
Provision Currency
and the default currency.
Set Up Workflows or Power Automate Flows
:
Create a workflow or Power Automate flow that triggers when the
Provision Amount
or
Provision Currency
fields are updated.
In the workflow or flow, calculate the
Provision Amount
in the default currency using the exchange rate and store it in the
Provision Amount
field.
Calculate and Display the Converted Amount
:
Use the exchange rate to convert the
Provision Amount
to the default currency.
Update the
Provision Amount
field with the converted value.
Example Workflow Logic
Trigger
: When
Provision Amount
or
Provision Currency
is updated.
Actions
:
Retrieve the exchange rate for the selected
Provision Currency
.
Calculate the converted amount:
Converted Amount = Provision Amount * Exchange Rate
.
Update the
Provision Amount
field with the converted amount.
Example Power Automate Flow
Trigger
: When a record is created or updated.
Actions
:
Get the
Provision Currency
and
Provision Amount
.
Retrieve the exchange rate for the
Provision Currency
.
Calculate the converted amount.
Update the
Provision Amount
field with the converted amount.
By following these steps, you can ensure that the
Provision Amount
field displays the value in the currency selected in the
Provision Currency
field, while still maintaining the default currency for other fields.
Comments
Add new comment
Comment on this blog post
New#123
You don't have the appropriate permissions.
Messages
Welcome,
Profile
Messages
My activity
Sign out