web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Transactioncurrencyid fix

(0) ShareShare
ReportReport
Posted on by 70

I had an old problem where the currency type was not populated for various entities such as account, contact, orders, lead and opportunity.

A monetary amount could not be entered until the currency type was set. This isn't a problem for a record or two because the currency type can be set first then the monetary fields but we had thousands of records to populate due to an old data migration.

I went into SSMS and found the transactioncurrency field in the base tables for account, contact, lead, order and opportunity.

The sql below set the currency to US dollars as I wanted:

update leadbase

set transactioncurrencyid = '440C3FC9-F112-DD11-90B8-0018F36514C2'

where transactioncurrencyid is null

 

--Ted Gordon

 

 

*This post is locked for comments

I have the same question (0)
  • Neil Benson Profile Picture
    7,369 User Group Leader on at

    Hi Ted, direct updates to the CRM database using a T-SQL script are not supported. This simple script might have worked for you, but what if (for example) there was some other dependency or update that occurs when the lead's currency is updated?

    The supported approach is to write a simple call to the Web Services API to update the currency. Using supported methods ensures that database integrity is maintained.

    Please take care with this kind of stuff. I've learned the hard way ; )

  • Ted Gordon Profile Picture
    70 on at

    Thanks,

     I did see in a MS CRM manual an advisory not to use TSQL to directly modify the CRM database.  I didn't see an PK, FK or any other constraint so I appear to be fine. You are right that there could be other updates involved that the API deals with.

    I did need to fix this problem so I took a chance.  I'm currently installing Visual Studio and will use C# in the future. 

     You don't know anything about Duplicate Detection jobs?  I ran a duplicate detective job for what I thought was only on active accounts.  I got active and inactive account duplicates.

     Thanks

    --Ted

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans