The entity involved is transactioncurrency and the follow attributes are required to create a new currency:
- currencyname (string)
- currencyprecision (int)
- currencysymbol (string)
- exchangerate (decimal)
- isocurrencycode (string)
Example:
Entity newCurrency = new Entity("transactioncurrency"); newCurrency["currencyname"] = "My Currency"; newCurrency["currencyprecision"] = 2; newCurrency["currencysymbol"] = "@"; newCurrency["exchangerate"] = 2m; newCurrency["isocurrencycode"] = "MCU"; // 3 letters Guid newCurrencyId = service.Create(newCurrency);
0 comments:
Post a Comment