How to get transaction currency info on dynamics crm

Try this code below;


string currencySymbol = "TRY"; // or something else
QueryExpression qe = new QueryExpression();
qe.EntityName = "transactioncurrency";
qe.ColumnSet = new ColumnSet(true);
qe.Criteria.AddCondition(new ConditionExpression("isocurrencycode", ConditionOperator.Equal, currencySymbol ));

Entity currencyEntity = this.OrgService.RetrieveMultiple(qe).Entities.FirstOrDefault().Id;

Advertisements

#dynamics-crm-transaction-currency, #query-expression-transaction-currency, #transaction-currency