Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1.98 KB

sample-retrieve-currency-exchange-rate.md

File metadata and controls

52 lines (35 loc) · 1.98 KB
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
Dynamics 365 Customer Engagement (on-premises)
d071fe46-4d71-4fd1-95b8-069bd4a96f8d
13
JimDaly
nabuthuk
developer

Sample: Retrieve currency exchange rate

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]

How to run this sample

[!includecc-how-to-run-samples]

What this sample does

The RetrieveExchangeRateRequest message is intended to be used in a scenario where it contains data that is needed to retrieve the exchange rate.

How this sample works

In order to simulate the scenario described in What this sample does, the sample will do the following:

Setup

  1. Checks for the current version of the org.
  2. The TransactionCurrency method creates a new currency for the sample.

Demonstrate

The RetrieveExchangeRateRequest message retrieves the exchange rate against the base currency of the org.

Clean up

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]