title | description | ms.custom | ms.date | ms.reviewer | ms.suite | ms.tgt_pltfrm | ms.topic | applies_to | ms.assetid | caps.latest.revision | author | ms.author | search.audienceType | ||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Sample: Retrieve currency exchange rate (Developer Guide for Dynamics 365 Customer Engagement) | MicrosoftDocs |
The sample demonstrates how to create a new currency, and how to retrieve and display the currency exchange rate relative to the organization’s base currency. |
10/31/2017 |
pehecke |
sample |
|
d071fe46-4d71-4fd1-95b8-069bd4a96f8d |
13 |
JimDaly |
nabuthuk |
|
This sample shows how to create a new currency, and how to retrieve and display the currency exchange rate relative to the organization’s base currency. You can download the sample from here.
[!includecc-sample-note]
[!includecc-how-to-run-samples]
The RetrieveExchangeRateRequest
message is intended to be used in a scenario where it contains data that is needed to retrieve the exchange rate.
In order to simulate the scenario described in What this sample does, the sample will do the following:
- Checks for the current version of the org.
- The
TransactionCurrency
method creates a new currency for the sample.
The RetrieveExchangeRateRequest
message retrieves the exchange rate against the base currency of the org.
Display an option to delete the sample data created in Setup. The deletion is optional in case you want to examine the entities and data created by the sample. You can manually delete the records to achieve the same result.
[!INCLUDEfooter-include]